More information on the Windows Console and escape sequences.
[metze/wireshark/wip.git] / cmakeconfig.h.in
1 /* cmakeconfig.h.in */
2
3 #ifndef __CONFIG_H__
4 #define __CONFIG_H__
5
6 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
7
8 /* Name of package */
9 #define PACKAGE "wireshark"
10
11 #define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"
12
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}
18
19 #define VERSION_RELEASE "${PROJECT_RELEASE_VERSION}"
20 #define VERSION_FLAVOR "${VERSION_FLAVOR}"
21
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}"
25
26 /* Build wsutil with SIMD optimization */
27 #cmakedefine HAVE_SSE4_2 1
28
29 /* Directory where extcap hooks reside */
30 #define EXTCAP_DIR "${EXTCAP_DIR}"
31
32 /* Define to 1 if we want to enable plugins */
33 #cmakedefine HAVE_PLUGINS 1
34
35 /*  Define to 1 if we check hf conflict */
36 #cmakedefine ENABLE_CHECK_FILTER 1
37
38 /* Link Wireshark libraries statically */
39 #cmakedefine ENABLE_STATIC 1
40
41 /* Enable AirPcap */
42 #cmakedefine HAVE_AIRPCAP 1
43
44 /* Define to 1 if you have the <arpa/inet.h> header file. */
45 #cmakedefine HAVE_ARPA_INET_H 1
46
47 /* Define to 1 if you have the <arpa/nameser.h> header file. */
48 #cmakedefine HAVE_ARPA_NAMESER_H 1
49
50 /* Define to 1 if you have the `bpf_image' function. */
51 #cmakedefine HAVE_BPF_IMAGE 1
52
53 /* Define to use c-ares library */
54 #cmakedefine HAVE_C_ARES 1
55
56 /* Define to 1 if you have the `dladdr' function. */
57 #cmakedefine HAVE_DLADDR 1
58
59 /* Define to 1 if you have the <dlfcn.h> header file. */
60 #cmakedefine HAVE_DLFCN_H 1
61
62 /* Define to 1 if you have the <fcntl.h> header file. */
63 #cmakedefine HAVE_FCNTL_H 1
64
65 /* Define to use GeoIP library */
66 #cmakedefine HAVE_GEOIP 1
67
68 /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
69 #cmakedefine HAVE_GEOIP_V6 1
70
71 /* Define if GeoIP has GeoIP_free */
72 #cmakedefine HAVE_GEOIP_FREE 1
73
74 /* Define to 1 if you have the <ifaddrs.h> header file. */
75 #cmakedefine HAVE_IFADDRS_H 1
76
77 /* Define to 1 if you have the `getifaddrs' function. */
78 #cmakedefine HAVE_GETIFADDRS 1
79
80 /* Define if LIBSSH support is enabled */
81 #cmakedefine HAVE_LIBSSH 1
82
83 /* Define if LIBSSH has ssh_userauth_agent() function */
84 #cmakedefine HAVE_SSH_USERAUTH_AGENT 1
85
86 /* Define if you have the 'floorl' function. */
87 #cmakedefine HAVE_FLOORL 1
88
89 /* Define if you have the 'lrint' function. */
90 #cmakedefine HAVE_LRINT 1
91
92 /* Define to 1 if you have the getopt_long function. */
93 #cmakedefine HAVE_GETOPT_LONG 1
94
95 /* Define to 1 if you have the <getopt.h> header file. */
96 #cmakedefine HAVE_GETOPT_H 1
97
98 /* Define to 1 if you have the <grp.h> header file. */
99 #cmakedefine HAVE_GRP_H 1
100
101 /* Define to use heimdal kerberos */
102 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
103
104 /* Define to 1 if you have the `inflatePrime' function. */
105 #cmakedefine HAVE_INFLATEPRIME 1
106
107 /* Define to 1 if you have the `issetugid' function. */
108 #cmakedefine HAVE_ISSETUGID 1
109
110 /* Define to use kerberos */
111 #cmakedefine HAVE_KERBEROS 1
112
113 /* Define to use nghttp2 */
114 #cmakedefine HAVE_NGHTTP2 1
115
116 /* Define to use the libcap library */
117 #cmakedefine HAVE_LIBCAP 1
118
119 /* Define to use GnuTLS library */
120 #cmakedefine HAVE_LIBGNUTLS 1
121
122 /* Enable libnl support */
123 #cmakedefine HAVE_LIBNL 1
124
125 /* libnl version 1 */
126 #cmakedefine HAVE_LIBNL1 1
127
128 /* libnl version 2 */
129 #cmakedefine HAVE_LIBNL2 1
130
131 /* libnl version 3 */
132 #cmakedefine HAVE_LIBNL3 1
133
134 /* Define to use libpcap library */
135 #cmakedefine HAVE_LIBPCAP 1
136
137 /* Define to use libportaudio library */
138 #cmakedefine HAVE_LIBPORTAUDIO 1
139
140 /* Define to 1 if you have the `smi' library (-lsmi). */
141 #cmakedefine HAVE_LIBSMI 1
142
143 /* Define to use zlib library */
144 #cmakedefine HAVE_ZLIB 1
145
146 /* Define to use lz4 library */
147 #cmakedefine HAVE_LZ4 1
148
149 /* Define to use snappy library */
150 #cmakedefine HAVE_SNAPPY 1
151
152 /* Define to 1 if you have the <linux/sockios.h> header file. */
153 #cmakedefine HAVE_LINUX_SOCKIOS_H 1
154
155 /* Define to 1 if you have the <linux/if_bonding.h> header file. */
156 #cmakedefine HAVE_LINUX_IF_BONDING_H 1
157
158 /* Define to use Lua */
159 #cmakedefine HAVE_LUA 1
160
161 /* Define to 1 if you have the <lua.h> header file. */
162 #cmakedefine HAVE_LUA_H 1
163
164 /* Define to 1 if you have the <memory.h> header file. */
165 #cmakedefine HAVE_MEMORY_H 1
166
167 /* Define to use MIT kerberos */
168 #cmakedefine HAVE_MIT_KERBEROS 1
169
170 /* Define to 1 if you have the `mkdtemp' function. */
171 #cmakedefine HAVE_MKDTEMP 1
172
173 /* Define to 1 if you have the `mkstemps' function. */
174 #cmakedefine HAVE_MKSTEMPS 1
175
176 /* Define to 1 if you have the `mmap' function. */
177 #cmakedefine HAVE_MMAP 1
178
179 /* Define to 1 if you have the `mprotect' function. */
180 #cmakedefine HAVE_MPROTECT 1
181
182 /* Define to 1 if you have the <netdb.h> header file. */
183 #cmakedefine HAVE_NETDB_H 1
184
185 /* Define to 1 if you have the <netinet/in.h> header file. */
186 #cmakedefine HAVE_NETINET_IN_H 1
187
188 /* nl80211.h is new enough */
189 #cmakedefine HAVE_NL80211 1
190
191 /* SET_CHANNEL is supported */
192 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
193
194 /* SPLIT_WIPHY_DUMP is supported */
195 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
196
197 /* VHT_CAPABILITY is supported */
198 #cmakedefine HAVE_NL80211_VHT_CAPABILITY 1
199
200 /* Define to 1 if you have the <Ntddndis.h> header file. */
201 #cmakedefine HAVE_NTDDNDIS_H 1
202
203 /* Define to 1 if you have macOS frameworks */
204 #cmakedefine HAVE_MACOS_FRAMEWORKS 1
205
206 /* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
207 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
208
209 /* Define if pcap_breakloop is known */
210 #cmakedefine HAVE_PCAP_BREAKLOOP 1
211
212 /* Define to 1 if you have the `pcap_create' function. */
213 #cmakedefine HAVE_PCAP_CREATE 1
214
215 /* Define to 1 if the capture buffer size can be set. */
216 #cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1
217
218 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
219 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
220
221 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
222 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
223
224 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
225 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
226
227 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
228    declares pcap_if_t. */
229 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
230
231 /* Define to 1 if you have the `pcap_freecode' function. */
232 #cmakedefine HAVE_PCAP_FREECODE 1
233
234 /* Define to 1 if you have the `pcap_free_datalinks' function. */
235 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
236
237 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
238 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
239
240 /* Define to 1 if you have the `pcap_lib_version' function. */
241 #cmakedefine HAVE_PCAP_LIB_VERSION 1
242
243 /* Define to 1 if you have the `pcap_list_datalinks' function. */
244 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
245
246 /* Define to 1 if you have the `pcap_open' function. */
247 #cmakedefine HAVE_PCAP_OPEN 1
248
249 /* Define to 1 if you have the `pcap_open_dead' function. */
250 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
251
252 /* Define to 1 if you have libpcap/WinPcap remote capturing support. */
253 #cmakedefine HAVE_PCAP_REMOTE 1
254
255 /* Define to 1 if you have the `pcap_set_datalink' function. */
256 #cmakedefine HAVE_PCAP_SET_DATALINK 1
257
258 /* Define to 1 if you have the `pcap_setsampling' function. */
259 #cmakedefine HAVE_PCAP_SETSAMPLING 1
260
261 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
262 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
263
264 /* Define to 1 if you have the `pcap_set_tstamp_type' function. */
265 #cmakedefine HAVE_PCAP_SET_TSTAMP_TYPE 1
266
267 /* Define to 1 if you have the popcount function. */
268 #cmakedefine HAVE_POPCOUNT 1
269
270 /* Define to 1 if you have the <portaudio.h> header file. */
271 #cmakedefine HAVE_PORTAUDIO_H 1
272
273 /* Define to 1 if you have the <pwd.h> header file. */
274 #cmakedefine HAVE_PWD_H 1
275
276 /* Define to 1 if you have the optreset variable */
277 #cmakedefine HAVE_OPTRESET 1
278
279 /* Define if sa_len field exists in struct sockaddr */
280 #cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
281
282 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
283 #cmakedefine HAVE_SBC 1
284
285 /* Define to 1 if you have the SpanDSP library. */
286 #cmakedefine HAVE_SPANDSP 1
287
288 /* Define to 1 if you have the bcg729 library. */
289 #cmakedefine HAVE_BCG729 1
290
291 /* Define to 1 if you have the lixbml2 library. */
292 #cmakedefine HAVE_LIBXML2 1
293
294 /* Define to 1 if you have the `setresgid' function. */
295 #cmakedefine HAVE_SETRESGID 1
296
297 /* Define to 1 if you have the `setresuid' function. */
298 #cmakedefine HAVE_SETRESUID 1
299
300 /* Define to 1 if you have the WinSparkle library */
301 #cmakedefine HAVE_SOFTWARE_UPDATE 1
302
303 /* Define if you have the 'strptime' function. */
304 #cmakedefine HAVE_STRPTIME 1
305
306 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
307 #cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1
308
309 /* Define if st_flags field exists in struct stat */
310 #cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
311
312 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
313 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
314
315 /* Define to 1 if you have the <sys/ioctl.h> header file. */
316 #cmakedefine HAVE_SYS_IOCTL_H 1
317
318 /* Define to 1 if you have the <sys/param.h> header file. */
319 #cmakedefine HAVE_SYS_PARAM_H 1
320
321 /* Define to 1 if you have the <sys/socket.h> header file. */
322 #cmakedefine HAVE_SYS_SOCKET_H 1
323
324 /* Define to 1 if you have the <sys/sockio.h> header file. */
325 #cmakedefine HAVE_SYS_SOCKIO_H 1
326
327 /* Define to 1 if you have the <sys/stat.h> header file. */
328 #cmakedefine HAVE_SYS_STAT_H 1
329
330 /* Define to 1 if you have the <sys/time.h> header file. */
331 #cmakedefine HAVE_SYS_TIME_H 1
332
333 /* Define to 1 if you have the <sys/types.h> header file. */
334 #cmakedefine HAVE_SYS_TYPES_H 1
335
336 /* Define to 1 if you have the <sys/utsname.h> header file. */
337 #cmakedefine HAVE_SYS_UTSNAME_H 1
338
339 /* Define to 1 if you have the <sys/wait.h> header file. */
340 #cmakedefine HAVE_SYS_WAIT_H 1
341
342 /* Define if tm_zone field exists in struct tm */
343 #cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
344
345 /* Define if tzname array exists */
346 #cmakedefine HAVE_TZNAME 1
347
348 /* Define to 1 if you have the <unistd.h> header file. */
349 #cmakedefine HAVE_UNISTD_H 1
350
351 /* Name of package */
352 #cmakedefine PACKAGE
353
354 /* Define to the address where bug reports for this package should be sent. */
355 #cmakedefine PACKAGE_BUGREPORT
356
357 /* Define to the full name of this package. */
358 #cmakedefine PACKAGE_NAME
359
360 /* Define to the full name and version of this package. */
361 #cmakedefine PACKAGE_STRING
362
363 /* Define to the one symbol short name of this package. */
364 #cmakedefine PACKAGE_TARNAME
365
366 /* Define to the version of this package. */
367 #cmakedefine PACKAGE_VERSION
368
369 /* Support for pcap-ng */
370 #cmakedefine PCAP_NG_DEFAULT 1
371
372 /* Define if we are using version of of the Portaudio library API */
373 #cmakedefine PORTAUDIO_API_1 1
374
375 /* Define if we have QtMultimedia */
376 #cmakedefine QT_MULTIMEDIA_LIB 1
377
378 /* Define if we have QtMacExtras */
379 #cmakedefine QT_MACEXTRAS_LIB 1
380
381 /* Define if we have QtWinExtras */
382 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
383
384 /* Define to 1 if your processor stores words with the most significant byte
385    first (like Motorola and SPARC, unlike Intel and VAX). */
386 #cmakedefine WORDS_BIGENDIAN 1
387
388 /* Build androiddump with libpcap instead of wireshark stuff */
389 #cmakedefine ANDROIDDUMP_USE_LIBPCAP 1
390
391 /* Large file support */
392 #cmakedefine _LARGEFILE_SOURCE
393 #cmakedefine _LARGEFILE64_SOURCE
394 #cmakedefine _LARGE_FILES
395 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
396
397 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
398    `char[]'. */
399 /* Note: not use in the code */
400 #cmakedefine YYTEXT_POINTER
401
402 #if defined(_WIN32)
403    /*
404     * Make sure everyone is using the same API and that it's sufficient
405     * for our needs.
406     * This should match the following:
407     * - The <compatibility><application> section in image\wireshark.exe.manifest.in
408     * - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
409     * - The VersionNT parts of packaging\wix\Prerequisites.wxi
410     */
411 #  if defined(NTDDI_VERSION)
412 #    error NTDDI_VERSION already defined.
413 #  endif
414 #  define NTDDI_VERSION NTDDI_VISTA
415 #  if defined(_WIN32_WINNT)
416 #    error _WIN32_WINNT already defined.
417 #  endif
418 #  define _WIN32_WINNT _WIN32_WINNT_VISTA
419
420    /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
421 #  ifndef WIN32
422 #    define WIN32       1
423 #  endif
424
425 #  if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
426    typedef int ssize_t;
427 #  endif
428
429    /* FIXME: Detection doesn't work */
430 #  define HAVE_NTDDNDIS_H 1
431
432    /*
433     * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
434     */
435 #  define YY_NO_UNISTD_H
436
437 #  define strncasecmp strnicmp
438 #  define popen       _popen
439 #  define pclose      _pclose
440
441 #  ifndef __STDC__
442 #    define __STDC__ 0
443 #  endif
444    /* Use Unicode in Windows runtime functions. */
445 #  define UNICODE 1
446 #  define _UNICODE 1
447
448 #  define NEED_STRPTIME_H 1
449 #endif
450
451 #include <ws_diag_control.h>
452
453 #endif /* __CONFIG_H__ */