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 /* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
23 /* Directory for data */
24 #define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
26 /* Build wsutil with SIMD optimization */
27 #cmakedefine HAVE_SSE4_2 1
29 /* Directory where extcap hooks reside */
30 #define EXTCAP_DIR "${EXTCAP_DIR}"
32 /* Define to 1 if we want to enable plugins */
33 #cmakedefine HAVE_PLUGINS 1
35 /* Define to 1 if we check hf conflict */
36 #cmakedefine ENABLE_CHECK_FILTER 1
38 /* Link Wireshark libraries statically */
39 #cmakedefine ENABLE_STATIC 1
42 #cmakedefine HAVE_AIRPCAP 1
44 /* Define to 1 if you have the <alloca.h> header file. */
45 #cmakedefine HAVE_ALLOCA_H 1
47 /* Define to 1 if you have the <arpa/inet.h> header file. */
48 #cmakedefine HAVE_ARPA_INET_H 1
50 /* Define to 1 if you have the `bpf_image' function. */
51 #cmakedefine HAVE_BPF_IMAGE 1
53 /* Define to use c-ares library */
54 #cmakedefine HAVE_C_ARES 1
56 /* Define to 1 if you have the `dladdr' function. */
57 #cmakedefine HAVE_DLADDR 1
59 /* Define to 1 if you have the <fcntl.h> header file. */
60 #cmakedefine HAVE_FCNTL_H 1
62 /* Define to use the MaxMind DB library */
63 #cmakedefine HAVE_MAXMINDDB 1
65 /* Define to 1 if you have the <ifaddrs.h> header file. */
66 #cmakedefine HAVE_IFADDRS_H 1
68 /* Define to 1 if you have the `getifaddrs' function. */
69 #cmakedefine HAVE_GETIFADDRS 1
71 /* Define if LIBSSH support is enabled */
72 #cmakedefine HAVE_LIBSSH 1
74 /* Define if LIBSSH has ssh_userauth_agent() function */
75 #cmakedefine HAVE_SSH_USERAUTH_AGENT 1
77 /* Define if you have the 'floorl' function. */
78 #cmakedefine HAVE_FLOORL 1
80 /* Define if you have the 'lrint' function. */
81 #cmakedefine HAVE_LRINT 1
83 /* Define to 1 if you have the getopt_long function. */
84 #cmakedefine HAVE_GETOPT_LONG 1
86 /* Define to 1 if you have the <getopt.h> header file. */
87 #cmakedefine HAVE_GETOPT_H 1
89 /* Define to 1 if you have the <grp.h> header file. */
90 #cmakedefine HAVE_GRP_H 1
92 /* Define to use heimdal kerberos */
93 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
95 /* Define to 1 if you have the `inflatePrime' function. */
96 #cmakedefine HAVE_INFLATEPRIME 1
98 /* Define to 1 if you have the `issetugid' function. */
99 #cmakedefine HAVE_ISSETUGID 1
101 /* Define to use kerberos */
102 #cmakedefine HAVE_KERBEROS 1
104 /* Define to use nghttp2 */
105 #cmakedefine HAVE_NGHTTP2 1
107 /* Define to use the libcap library */
108 #cmakedefine HAVE_LIBCAP 1
110 /* Define to use GnuTLS library */
111 #cmakedefine HAVE_LIBGNUTLS 1
113 /* Enable libnl support */
114 #cmakedefine HAVE_LIBNL 1
116 /* libnl version 1 */
117 #cmakedefine HAVE_LIBNL1 1
119 /* libnl version 2 */
120 #cmakedefine HAVE_LIBNL2 1
122 /* libnl version 3 */
123 #cmakedefine HAVE_LIBNL3 1
125 /* Define to use libpcap library */
126 #cmakedefine HAVE_LIBPCAP 1
128 /* Define to 1 if you have the `smi' library (-lsmi). */
129 #cmakedefine HAVE_LIBSMI 1
131 /* Define to use zlib library */
132 #cmakedefine HAVE_ZLIB 1
134 /* Define to use lz4 library */
135 #cmakedefine HAVE_LZ4 1
137 /* Define to use snappy library */
138 #cmakedefine HAVE_SNAPPY 1
140 /* Define to 1 if you have the <linux/sockios.h> header file. */
141 #cmakedefine HAVE_LINUX_SOCKIOS_H 1
143 /* Define to 1 if you have the <linux/if_bonding.h> header file. */
144 #cmakedefine HAVE_LINUX_IF_BONDING_H 1
146 /* Define to use Lua */
147 #cmakedefine HAVE_LUA 1
149 /* Define to 1 if you have the <lua.h> header file. */
150 #cmakedefine HAVE_LUA_H 1
152 /* Define to 1 if you have the <memory.h> header file. */
153 #cmakedefine HAVE_MEMORY_H 1
155 /* Define to use MIT kerberos */
156 #cmakedefine HAVE_MIT_KERBEROS 1
158 /* Define to 1 if you have the `mkstemps' function. */
159 #cmakedefine HAVE_MKSTEMPS 1
161 /* Define to 1 if you have the `mmap' function. */
162 #cmakedefine HAVE_MMAP 1
164 /* Define to 1 if you have the `mprotect' function. */
165 #cmakedefine HAVE_MPROTECT 1
167 /* Define to 1 if you have the <netdb.h> header file. */
168 #cmakedefine HAVE_NETDB_H 1
170 /* Define to 1 if you have the <netinet/in.h> header file. */
171 #cmakedefine HAVE_NETINET_IN_H 1
173 /* nl80211.h is new enough */
174 #cmakedefine HAVE_NL80211 1
176 /* SET_CHANNEL is supported */
177 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
179 /* SPLIT_WIPHY_DUMP is supported */
180 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
182 /* VHT_CAPABILITY is supported */
183 #cmakedefine HAVE_NL80211_VHT_CAPABILITY 1
185 /* Define to 1 if you have macOS frameworks */
186 #cmakedefine HAVE_MACOS_FRAMEWORKS 1
188 /* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
189 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
191 /* Define if pcap_breakloop is known */
192 #cmakedefine HAVE_PCAP_BREAKLOOP 1
194 /* Define to 1 if you have the `pcap_create' function. */
195 #cmakedefine HAVE_PCAP_CREATE 1
197 /* Define to 1 if the capture buffer size can be set. */
198 #cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1
200 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
201 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
203 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
204 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
206 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
207 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
209 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
210 declares pcap_if_t. */
211 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
213 /* Define to 1 if you have the `pcap_freecode' function. */
214 #cmakedefine HAVE_PCAP_FREECODE 1
216 /* Define to 1 if you have the `pcap_free_datalinks' function. */
217 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
219 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
220 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
222 /* Define to 1 if you have the `pcap_lib_version' function. */
223 #cmakedefine HAVE_PCAP_LIB_VERSION 1
225 /* Define to 1 if you have the `pcap_list_datalinks' function. */
226 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
228 /* Define to 1 if you have the `pcap_open' function. */
229 #cmakedefine HAVE_PCAP_OPEN 1
231 /* Define to 1 if you have the `pcap_open_dead' function. */
232 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
234 /* Define to 1 if you have libpcap/WinPcap remote capturing support. */
235 #cmakedefine HAVE_PCAP_REMOTE 1
237 /* Define to 1 if you have the `pcap_set_datalink' function. */
238 #cmakedefine HAVE_PCAP_SET_DATALINK 1
240 /* Define to 1 if you have the `pcap_setsampling' function. */
241 #cmakedefine HAVE_PCAP_SETSAMPLING 1
243 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
244 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
246 /* Define to 1 if you have the `pcap_set_tstamp_type' function. */
247 #cmakedefine HAVE_PCAP_SET_TSTAMP_TYPE 1
249 /* Define to 1 if you have the <pwd.h> header file. */
250 #cmakedefine HAVE_PWD_H 1
252 /* Define to 1 if you have the optreset variable */
253 #cmakedefine HAVE_OPTRESET 1
255 /* Define if sa_len field exists in struct sockaddr */
256 #cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
258 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
259 #cmakedefine HAVE_SBC 1
261 /* Define to 1 if you have the SpanDSP library. */
262 #cmakedefine HAVE_SPANDSP 1
264 /* Define to 1 if you have the bcg729 library. */
265 #cmakedefine HAVE_BCG729 1
267 /* Define to 1 if you have the lixbml2 library. */
268 #cmakedefine HAVE_LIBXML2 1
270 /* Define to 1 if you have the `setresgid' function. */
271 #cmakedefine HAVE_SETRESGID 1
273 /* Define to 1 if you have the `setresuid' function. */
274 #cmakedefine HAVE_SETRESUID 1
276 /* Define to 1 if you have the WinSparkle library */
277 #cmakedefine HAVE_SOFTWARE_UPDATE 1
279 /* Define if you have the 'strptime' function. */
280 #cmakedefine HAVE_STRPTIME 1
282 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
283 #cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1
285 /* Define if st_flags field exists in struct stat */
286 #cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
288 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
289 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
291 /* Define to 1 if you have the <sys/ioctl.h> header file. */
292 #cmakedefine HAVE_SYS_IOCTL_H 1
294 /* Define to 1 if you have the <sys/socket.h> header file. */
295 #cmakedefine HAVE_SYS_SOCKET_H 1
297 /* Define to 1 if you have the <sys/sockio.h> header file. */
298 #cmakedefine HAVE_SYS_SOCKIO_H 1
300 /* Define to 1 if you have the <sys/stat.h> header file. */
301 #cmakedefine HAVE_SYS_STAT_H 1
303 /* Define to 1 if you have the <sys/time.h> header file. */
304 #cmakedefine HAVE_SYS_TIME_H 1
306 /* Define to 1 if you have the <sys/types.h> header file. */
307 #cmakedefine HAVE_SYS_TYPES_H 1
309 /* Define to 1 if you have the <sys/utsname.h> header file. */
310 #cmakedefine HAVE_SYS_UTSNAME_H 1
312 /* Define to 1 if you have the <sys/wait.h> header file. */
313 #cmakedefine HAVE_SYS_WAIT_H 1
315 /* Define if tm_zone field exists in struct tm */
316 #cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
318 /* Define if tzname array exists */
319 #cmakedefine HAVE_TZNAME 1
321 /* Define to 1 if you have the <unistd.h> header file. */
322 #cmakedefine HAVE_UNISTD_H 1
324 /* Name of package */
327 /* Define to the address where bug reports for this package should be sent. */
328 #cmakedefine PACKAGE_BUGREPORT
330 /* Define to the full name of this package. */
331 #cmakedefine PACKAGE_NAME
333 /* Define to the full name and version of this package. */
334 #cmakedefine PACKAGE_STRING
336 /* Define to the one symbol short name of this package. */
337 #cmakedefine PACKAGE_TARNAME
339 /* Define to the version of this package. */
340 #cmakedefine PACKAGE_VERSION
342 /* Support for pcapng */
343 #cmakedefine PCAP_NG_DEFAULT 1
345 /* Define if we are using version of of the Portaudio library API */
346 #cmakedefine PORTAUDIO_API_1 1
348 /* Define if we have QtMultimedia */
349 #cmakedefine QT_MULTIMEDIA_LIB 1
351 /* Define if we have QtMacExtras */
352 #cmakedefine QT_MACEXTRAS_LIB 1
354 /* Define if we have QtWinExtras */
355 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
357 /* Build androiddump with libpcap instead of wireshark stuff */
358 #cmakedefine ANDROIDDUMP_USE_LIBPCAP 1
360 /* Large file support */
361 #cmakedefine _LARGEFILE_SOURCE
362 #cmakedefine _LARGEFILE64_SOURCE
363 #cmakedefine _LARGE_FILES
364 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
366 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
368 /* Note: not use in the code */
369 #cmakedefine YYTEXT_POINTER
373 * Make sure everyone is using the same API and that it's sufficient
375 * This should match the following:
376 * - The <compatibility><application> section in image\wireshark.exe.manifest.in
377 * - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
378 * - The VersionNT parts of packaging\wix\Prerequisites.wxi
380 # if defined(NTDDI_VERSION)
381 # error NTDDI_VERSION already defined.
383 # define NTDDI_VERSION NTDDI_WIN7
384 # if defined(_WIN32_WINNT)
385 # error _WIN32_WINNT already defined.
387 # define _WIN32_WINNT _WIN32_WINNT_WIN7
389 /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
394 # if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
399 * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
401 # define YY_NO_UNISTD_H
403 # define strncasecmp strnicmp
404 # define popen _popen
405 # define pclose _pclose
410 /* Use Unicode in Windows runtime functions. */
414 # define NEED_STRPTIME_H 1
417 #include <ws_diag_control.h>
419 #endif /* __CONFIG_H__ */