6 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
9 #define PACKAGE "wireshark"
11 #define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"
13 /* Version number of package */
14 #define VERSION "${CPACK_PACKAGE_VERSION}${VERSION_EXTRA}"
15 #define VERSION_MAJOR ${PROJECT_MAJOR_VERSION}
16 #define VERSION_MINOR ${PROJECT_MINOR_VERSION}
17 #define VERSION_MICRO ${PROJECT_PATCH_VERSION}
19 #define VERSION_RELEASE "${PROJECT_RELEASE_VERSION}"
20 #define VERSION_FLAVOR "${VERSION_FLAVOR}"
22 /* Build wsutil with SIMD optimization */
23 #cmakedefine HAVE_SSE4_2 1
25 /* Define to 1 if we want to enable plugins */
26 #cmakedefine HAVE_PLUGINS 1
28 /* Define to 1 if we check hf conflict */
29 #cmakedefine ENABLE_CHECK_FILTER 1
31 /* Link Wireshark libraries statically */
32 #cmakedefine ENABLE_STATIC 1
35 #cmakedefine HAVE_AIRPCAP 1
37 /* Define to 1 if you have the <alloca.h> header file. */
38 #cmakedefine HAVE_ALLOCA_H 1
40 /* Define to 1 if you have the <arpa/inet.h> header file. */
41 #cmakedefine HAVE_ARPA_INET_H 1
43 /* Define to 1 if you have the `bpf_image' function. */
44 #cmakedefine HAVE_BPF_IMAGE 1
46 /* Define to use c-ares library */
47 #cmakedefine HAVE_C_ARES 1
49 /* Define to 1 if you have the <fcntl.h> header file. */
50 #cmakedefine HAVE_FCNTL_H 1
52 /* Define to use the MaxMind DB library */
53 #cmakedefine HAVE_MAXMINDDB 1
55 /* Define to 1 if you have the <ifaddrs.h> header file. */
56 #cmakedefine HAVE_IFADDRS_H 1
58 /* Define to 1 if yu have the `fseeko` function. */
59 #cmakedefine HAVE_FSEEKO 1
61 /* Define to 1 if you have the `getexecname' function. */
62 #cmakedefine HAVE_GETEXECNAME 1
64 /* Define to 1 if you have the `getifaddrs' function. */
65 #cmakedefine HAVE_GETIFADDRS 1
67 /* Define if LIBSSH support is enabled */
68 #cmakedefine HAVE_LIBSSH 1
70 /* Define if LIBSSH has ssh_userauth_agent() function */
71 #cmakedefine HAVE_SSH_USERAUTH_AGENT 1
73 /* Define if you have the 'dlget' function. */
74 #cmakedefine HAVE_DLGET 1
76 /* Define if you have the 'getexecname' function. */
77 #cmakedefine HAVE_GETEXECNAME 1
79 /* Define if you have the 'floorl' function. */
80 #cmakedefine HAVE_FLOORL 1
82 /* Define if you have the 'lrint' function. */
83 #cmakedefine HAVE_LRINT 1
85 /* Define to 1 if you have the getopt_long function. */
86 #cmakedefine HAVE_GETOPT_LONG 1
88 /* Define to 1 if you have the <getopt.h> header file. */
89 #cmakedefine HAVE_GETOPT_H 1
91 /* Define to 1 if you have the <grp.h> header file. */
92 #cmakedefine HAVE_GRP_H 1
94 /* Define to use heimdal kerberos */
95 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
97 /* Define to 1 if you have the `inflatePrime' function. */
98 #cmakedefine HAVE_INFLATEPRIME 1
100 /* Define to 1 if you have the `issetugid' function. */
101 #cmakedefine HAVE_ISSETUGID 1
103 /* Define to use kerberos */
104 #cmakedefine HAVE_KERBEROS 1
106 /* Define to use nghttp2 */
107 #cmakedefine HAVE_NGHTTP2 1
109 /* Define to use the libcap library */
110 #cmakedefine HAVE_LIBCAP 1
112 /* Define to use GnuTLS library */
113 #cmakedefine HAVE_LIBGNUTLS 1
115 /* Define to 1 if GnuTLS was built with pkcs11 support. */
116 #cmakedefine HAVE_GNUTLS_PKCS11 1
118 /* Enable libnl support */
119 #cmakedefine HAVE_LIBNL 1
121 /* libnl version 1 */
122 #cmakedefine HAVE_LIBNL1 1
124 /* libnl version 2 */
125 #cmakedefine HAVE_LIBNL2 1
127 /* libnl version 3 */
128 #cmakedefine HAVE_LIBNL3 1
130 /* Define to use libpcap library */
131 #cmakedefine HAVE_LIBPCAP 1
133 /* Define to 1 if you have the `smi' library (-lsmi). */
134 #cmakedefine HAVE_LIBSMI 1
136 /* Define to use zlib library */
137 #cmakedefine HAVE_ZLIB 1
139 /* Define to use lz4 library */
140 #cmakedefine HAVE_LZ4 1
142 /* Check for lz4frame */
143 #cmakedefine HAVE_LZ4FRAME_H 1
145 /* Define to use snappy library */
146 #cmakedefine HAVE_SNAPPY 1
148 /* Define to 1 if you have the <linux/sockios.h> header file. */
149 #cmakedefine HAVE_LINUX_SOCKIOS_H 1
151 /* Define to 1 if you have the <linux/if_bonding.h> header file. */
152 #cmakedefine HAVE_LINUX_IF_BONDING_H 1
154 /* Define to use Lua */
155 #cmakedefine HAVE_LUA 1
157 /* Define to 1 if you have the <lua.h> header file. */
158 #cmakedefine HAVE_LUA_H 1
160 /* Define to 1 if you have the <memory.h> header file. */
161 #cmakedefine HAVE_MEMORY_H 1
163 /* Define to use MIT kerberos */
164 #cmakedefine HAVE_MIT_KERBEROS 1
166 /* Define to 1 if you have the `mkstemps' function. */
167 #cmakedefine HAVE_MKSTEMPS 1
169 /* Define to 1 if you have the `mmap' function. */
170 #cmakedefine HAVE_MMAP 1
172 /* Define to 1 if you have the `mprotect' function. */
173 #cmakedefine HAVE_MPROTECT 1
175 /* Define to 1 if you have the <netdb.h> header file. */
176 #cmakedefine HAVE_NETDB_H 1
178 /* Define to 1 if you have the <netinet/in.h> header file. */
179 #cmakedefine HAVE_NETINET_IN_H 1
181 /* nl80211.h is new enough */
182 #cmakedefine HAVE_NL80211 1
184 /* SET_CHANNEL is supported */
185 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
187 /* SPLIT_WIPHY_DUMP is supported */
188 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
190 /* VHT_CAPABILITY is supported */
191 #cmakedefine HAVE_NL80211_VHT_CAPABILITY 1
193 /* Define to 1 if you have macOS frameworks */
194 #cmakedefine HAVE_MACOS_FRAMEWORKS 1
196 /* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
197 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
199 /* Define if pcap_breakloop is known */
200 #cmakedefine HAVE_PCAP_BREAKLOOP 1
202 /* Define to 1 if you have the `pcap_create' function. */
203 #cmakedefine HAVE_PCAP_CREATE 1
205 /* Define to 1 if the capture buffer size can be set. */
206 #cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1
208 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
209 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
211 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
212 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
214 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
215 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
217 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
218 declares pcap_if_t. */
219 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
221 /* Define to 1 if you have the `pcap_freecode' function. */
222 #cmakedefine HAVE_PCAP_FREECODE 1
224 /* Define to 1 if you have the `pcap_free_datalinks' function. */
225 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
227 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
228 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
230 /* Define to 1 if you have the `pcap_lib_version' function. */
231 #cmakedefine HAVE_PCAP_LIB_VERSION 1
233 /* Define to 1 if you have the `pcap_list_datalinks' function. */
234 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
236 /* Define to 1 if you have the `pcap_open' function. */
237 #cmakedefine HAVE_PCAP_OPEN 1
239 /* Define to 1 if you have the `pcap_open_dead' function. */
240 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
242 /* Define to 1 if you have libpcap/WinPcap remote capturing support. */
243 #cmakedefine HAVE_PCAP_REMOTE 1
245 /* Define to 1 if you have the `pcap_set_datalink' function. */
246 #cmakedefine HAVE_PCAP_SET_DATALINK 1
248 /* Define to 1 if you have the `pcap_setsampling' function. */
249 #cmakedefine HAVE_PCAP_SETSAMPLING 1
251 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
252 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
254 /* Define to 1 if you have the `pcap_set_tstamp_type' function. */
255 #cmakedefine HAVE_PCAP_SET_TSTAMP_TYPE 1
257 /* Define to 1 if you have the <pwd.h> header file. */
258 #cmakedefine HAVE_PWD_H 1
260 /* Define to 1 if you have the optreset variable */
261 #cmakedefine HAVE_OPTRESET 1
263 /* Define if sa_len field exists in struct sockaddr */
264 #cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
266 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
267 #cmakedefine HAVE_SBC 1
269 /* Define to 1 if you have the SpanDSP library. */
270 #cmakedefine HAVE_SPANDSP 1
272 /* Define to 1 if you have the bcg729 library. */
273 #cmakedefine HAVE_BCG729 1
275 /* Define to 1 if you have the lixbml2 library. */
276 #cmakedefine HAVE_LIBXML2 1
278 /* Define to 1 if you have the `setresgid' function. */
279 #cmakedefine HAVE_SETRESGID 1
281 /* Define to 1 if you have the `setresuid' function. */
282 #cmakedefine HAVE_SETRESUID 1
284 /* Define to 1 if you have the WinSparkle library */
285 #cmakedefine HAVE_SOFTWARE_UPDATE 1
287 /* Define if you have the 'strptime' function. */
288 #cmakedefine HAVE_STRPTIME 1
290 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
291 #cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1
293 /* Define if st_flags field exists in struct stat */
294 #cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
296 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
297 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
299 /* Define to 1 if you have the <sys/ioctl.h> header file. */
300 #cmakedefine HAVE_SYS_IOCTL_H 1
302 /* Define to 1 if you have the <sys/socket.h> header file. */
303 #cmakedefine HAVE_SYS_SOCKET_H 1
305 /* Define to 1 if you have the <sys/sockio.h> header file. */
306 #cmakedefine HAVE_SYS_SOCKIO_H 1
308 /* Define to 1 if you have the <sys/time.h> header file. */
309 #cmakedefine HAVE_SYS_TIME_H 1
311 /* Define to 1 if you have the <sys/utsname.h> header file. */
312 #cmakedefine HAVE_SYS_UTSNAME_H 1
314 /* Define to 1 if you have the <sys/wait.h> header file. */
315 #cmakedefine HAVE_SYS_WAIT_H 1
317 /* Define if tm_zone field exists in struct tm */
318 #cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
320 /* Define if tzname array exists */
321 #cmakedefine HAVE_TZNAME 1
323 /* Define to 1 if you have the <unistd.h> header file. */
324 #cmakedefine HAVE_UNISTD_H 1
326 /* Name of package */
329 /* Define to the address where bug reports for this package should be sent. */
330 #cmakedefine PACKAGE_BUGREPORT
332 /* Define to the full name of this package. */
333 #cmakedefine PACKAGE_NAME
335 /* Define to the full name and version of this package. */
336 #cmakedefine PACKAGE_STRING
338 /* Define to the one symbol short name of this package. */
339 #cmakedefine PACKAGE_TARNAME
341 /* Define to the version of this package. */
342 #cmakedefine PACKAGE_VERSION
344 /* Support for pcapng */
345 #cmakedefine PCAP_NG_DEFAULT 1
347 /* Define if we have QtMultimedia */
348 #define QT_MULTIMEDIA_LIB 1
350 /* Define if we have QtMacExtras */
351 #cmakedefine QT_MACEXTRAS_LIB 1
353 /* Build androiddump with libpcap instead of wireshark stuff */
354 #cmakedefine ANDROIDDUMP_USE_LIBPCAP 1
356 /* Large file support */
357 #cmakedefine _LARGEFILE_SOURCE
358 #cmakedefine _LARGEFILE64_SOURCE
359 #cmakedefine _LARGE_FILES
360 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
362 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
364 /* Note: not use in the code */
365 #cmakedefine YYTEXT_POINTER
369 * Make sure everyone is using the same API and that it's sufficient
371 * This should match the following:
372 * - The <compatibility><application> section in image\wireshark.exe.manifest.in
373 * - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
374 * - The VersionNT parts of packaging\wix\Prerequisites.wxi
376 # if defined(NTDDI_VERSION)
377 # error NTDDI_VERSION already defined.
379 # define NTDDI_VERSION NTDDI_WIN7
380 # if defined(_WIN32_WINNT)
381 # error _WIN32_WINNT already defined.
383 # define _WIN32_WINNT _WIN32_WINNT_WIN7
385 /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
390 # if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
395 * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
397 # define YY_NO_UNISTD_H
399 # define strncasecmp strnicmp
400 # define popen _popen
401 # define pclose _pclose
406 /* Use Unicode in Windows runtime functions. */
410 # define NEED_STRPTIME_H 1
413 #include <ws_diag_control.h>
415 #endif /* __CONFIG_H__ */