We use GLib's directory-reading routines, so we don't need <dire[cn]t.h>.
[metze/wireshark/wip.git] / cmakeconfig.h.in
1 /* cmakeconfig.h.in */
2
3 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
4
5 /* Name of package */
6 #define PACKAGE "wireshark"
7
8 #define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"
9
10 /* Version number of package */
11 #define VERSION "${CPACK_PACKAGE_VERSION}${VERSION_EXTRA}"
12 #define VERSION_MAJOR ${PROJECT_MAJOR_VERSION}
13 #define VERSION_MINOR ${PROJECT_MINOR_VERSION}
14 #define VERSION_MICRO ${PROJECT_PATCH_VERSION}
15
16 /* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
17 /* Directory for data */
18 #define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
19
20 /* Build wsutil with SIMD optimization */
21 #cmakedefine HAVE_SSE4_2 1
22
23 /* Directory where extcap hooks reside */
24 #define EXTCAP_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/extcap/"
25
26 /* Define to 1 if we want to enable extcap */
27 #cmakedefine HAVE_EXTCAP 1
28
29 /* Define to 1 if we want to enable plugins */
30 #cmakedefine HAVE_PLUGINS 1
31
32 /* Link plugins statically into Wireshark */
33 #cmakedefine ENABLE_STATIC 1
34
35 /* Enable AirPcap */
36 #cmakedefine HAVE_AIRPCAP 1
37
38 /* Define to 1 if you have the <arpa/inet.h> header file. */
39 #cmakedefine HAVE_ARPA_INET_H 1
40
41 /* Define to 1 if you have the <arpa/nameser.h> header file. */
42 #cmakedefine HAVE_ARPA_NAMESER_H 1
43
44 /* Define to 1 if you have the `bpf_image' function. */
45 #cmakedefine HAVE_BPF_IMAGE 1
46
47 /* Define to use c-ares library */
48 #cmakedefine HAVE_C_ARES 1
49
50 /* Define to 1 if you have the `dladdr' function. */
51 #cmakedefine HAVE_DLADDR 1
52
53 /* Define to 1 if you have the <dlfcn.h> header file. */
54 #cmakedefine HAVE_DLFCN_H 1
55
56 /* Define to 1 if you have the <fcntl.h> header file. */
57 #cmakedefine HAVE_FCNTL_H 1
58
59 /* Define to use GeoIP library */
60 #cmakedefine HAVE_GEOIP 1
61
62 /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
63 #cmakedefine HAVE_GEOIP_V6 1
64
65 /* Define if you have the 'floorl' function. */
66 #cmakedefine HAVE_FLOORL 1
67
68 /* Define to 1 if you have the `getaddrinfo' function. */
69 #cmakedefine HAVE_GETADDRINFO 1
70
71 /* Define to 1 if you have the getopt_long function. */
72 #cmakedefine HAVE_GETOPT_LONG 1
73
74 /* Define to 1 if you have the <getopt.h> header file. */
75 #cmakedefine HAVE_GETOPT_H 1
76
77 /* Define if GLib's printf functions support thousands grouping. */
78 #cmakedefine HAVE_GLIB_PRINTF_GROUPING 1
79
80 /* Define to 1 if you have the `getprotobynumber' function. */
81 #cmakedefine HAVE_GETPROTOBYNUMBER 1
82
83 /* Define to use GNU ADNS library */
84 #cmakedefine HAVE_GNU_ADNS 1
85
86 /* Define to 1 if you have the <grp.h> header file. */
87 #cmakedefine HAVE_GRP_H 1
88
89 /* Define to use heimdal kerberos */
90 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
91
92 /* Define unless inet/aton.h needs to be included */
93 #cmakedefine HAVE_INET_ATON_H 1
94
95 /* Define if inet_ntop() prototype exists */
96 #cmakedefine HAVE_INET_NTOP_PROTO 1
97
98 /* Define to 1 if you have the `inflatePrime' function. */
99 #cmakedefine HAVE_INFLATEPRIME 1
100
101 /* Define to 1 if you have the <inttypes.h> header file. */
102 #cmakedefine HAVE_INTTYPES_H 1
103
104 /* Define to 1 if you have the `issetugid' function. */
105 #cmakedefine HAVE_ISSETUGID 1
106
107 /* Define to use kerberos */
108 #cmakedefine HAVE_KERBEROS 1
109
110 /* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */
111 #cmakedefine HAVE_KEYTYPE_ARCFOUR_56 1
112
113 /* Define to use the libcap library */
114 #cmakedefine HAVE_LIBCAP 1
115
116 /* Define to use libgcrypt */
117 #cmakedefine HAVE_LIBGCRYPT 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 libz library */
144 #cmakedefine HAVE_LIBZ 1
145
146 /* Define to use Lua */
147 #cmakedefine HAVE_LUA 1
148
149 /* Define to 1 if you have the <lua.h> header file. */
150 #cmakedefine HAVE_LUA_H 1
151
152 /* Define to 1 if you have the <memory.h> header file. */
153 #cmakedefine HAVE_MEMORY_H 1
154
155 /* Define to use MIT kerberos */
156 #cmakedefine HAVE_MIT_KERBEROS 1
157
158 /* Define to 1 if you have the `mkdtemp' function. */
159 #cmakedefine HAVE_MKDTEMP 1
160
161 /* Define to 1 if you have the `mkstemp' function. */
162 #cmakedefine HAVE_MKSTEMP 1
163
164 /* Define to 1 if you have the `mmap' function. */
165 #cmakedefine HAVE_MMAP 1
166
167 /* Define to 1 if you have the `mprotect' function. */
168 #cmakedefine HAVE_MPROTECT 1
169
170 /* Define to 1 if you have the <netdb.h> header file. */
171 #cmakedefine HAVE_NETDB_H 1
172
173 /* Define to 1 if you have the <netinet/in.h> header file. */
174 #cmakedefine HAVE_NETINET_IN_H 1
175
176 /* nl80211.h is new enough */
177 #cmakedefine HAVE_NL80211 1
178
179 /* SET_CHANNEL is supported */
180 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
181
182 /* SPLIT_WIPHY_DUMP is supported */
183 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
184
185 /* Define to 1 if you have the <Ntddndis.h> header file. */
186 #cmakedefine HAVE_NTDDNDIS_H 1
187
188 /* Define to 1 if you have OS X frameworks */
189 #cmakedefine HAVE_OS_X_FRAMEWORKS 1
190
191 /* Define to 1 if you have the OS X CFPropertyListCreateWithStream function */
192 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
193
194 /* Define if pcap_breakloop is known */
195 #cmakedefine HAVE_PCAP_BREAKLOOP 1
196
197 /* Define to 1 if you have the `pcap_create' function. */
198 #cmakedefine HAVE_PCAP_CREATE 1
199
200 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
201 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
202
203 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
204 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
205
206 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
207 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
208
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
212
213 /* Define to 1 if you have the `pcap_freecode' function. */
214 #cmakedefine HAVE_PCAP_FREECODE 1
215
216 /* Define to 1 if you have the `pcap_free_datalinks' function. */
217 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
218
219 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
220 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
221
222 /* Define to 1 if you have the `pcap_lib_version' function. */
223 #cmakedefine HAVE_PCAP_LIB_VERSION 1
224
225 /* Define to 1 if you have the `pcap_list_datalinks' function. */
226 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
227
228 /* Define to 1 if you have the `pcap_open' function. */
229 #cmakedefine HAVE_PCAP_OPEN 1
230
231 /* Define to 1 if you have the `pcap_open_dead' function. */
232 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
233
234 /* Define to 1 if you have WinPcap remote capturing support and prefer to use
235    these new API features. */
236 #cmakedefine HAVE_PCAP_REMOTE 1
237
238 /* Define to 1 if you have the `pcap_set_datalink' function. */
239 #cmakedefine HAVE_PCAP_SET_DATALINK 1
240
241 /* Define to 1 if you have the `pcap_setsampling' function. */
242 #cmakedefine HAVE_PCAP_SETSAMPLING 1
243
244 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
245 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
246
247 /* Define to 1 if you have the popcount function. */
248 #cmakedefine HAVE_POPCOUNT 1
249
250 /* Define to 1 if you have the <portaudio.h> header file. */
251 #cmakedefine HAVE_PORTAUDIO_H 1
252
253 /* Define to 1 if you have the <pwd.h> header file. */
254 #cmakedefine HAVE_PWD_H 1
255
256 /* Define to 1 if you have the optreset variable */
257 #cmakedefine HAVE_OPTRESET 1
258
259 /* Define to 1 to enable remote capturing feature in WinPcap library */
260 #cmakedefine HAVE_REMOTE 1
261
262 /* Define if sa_len field exists in struct sockaddr */
263 #cmakedefine HAVE_SA_LEN 1
264
265 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
266 #cmakedefine HAVE_SBC 1
267
268 /* Define to 1 if you have the `setresgid' function. */
269 #cmakedefine HAVE_SETRESGID 1
270
271 /* Define to 1 if you have the `setresuid' function. */
272 #cmakedefine HAVE_SETRESUID 1
273
274 /* Define to 1 if you have the WinSparkle library */
275 #cmakedefine HAVE_SOFTWARE_UPDATE 1
276
277 /* Define to 1 if you have the <stdarg.h> header file. */
278 #cmakedefine HAVE_STDARG_H 1
279
280 /* Define to 1 if you have the <stddef.h> header file. */
281 #cmakedefine HAVE_STDDEF_H 1
282
283 /* Define to 1 if you have the <stdint.h> header file. */
284 #cmakedefine HAVE_STDINT_H 1
285
286 /* Define to 1 if you have the <stdlib.h> header file. */
287 #cmakedefine HAVE_STDLIB_H 1
288
289 /* Define to 1 if you have the <strings.h> header file. */
290 #cmakedefine HAVE_STRINGS_H 1
291
292 /* Define to 1 if you have the <string.h> header file. */
293 #cmakedefine HAVE_STRING_H 1
294
295 /* Define if you have the 'strptime' function. */
296 #cmakedefine HAVE_STRPTIME 1
297
298 /* Define if st_flags field exists in struct stat */
299 #cmakedefine HAVE_ST_FLAGS 1
300
301 /* Define to 1 if you have the `sysconf' function. */
302 #cmakedefine HAVE_SYSCONF 1
303
304 /* Define to 1 if you have the <sys/ioctl.h> header file. */
305 #cmakedefine HAVE_SYS_IOCTL_H 1
306
307 /* Define to 1 if you have the <sys/param.h> header file. */
308 #cmakedefine HAVE_SYS_PARAM_H 1
309
310 /* Define to 1 if you have the <sys/socket.h> header file. */
311 #cmakedefine HAVE_SYS_SOCKET_H 1
312
313 /* Define to 1 if you have the <sys/sockio.h> header file. */
314 #cmakedefine HAVE_SYS_SOCKIO_H 1
315
316 /* Define to 1 if you have the <sys/stat.h> header file. */
317 #cmakedefine HAVE_SYS_STAT_H 1
318
319 /* Define to 1 if you have the <sys/time.h> header file. */
320 #cmakedefine HAVE_SYS_TIME_H 1
321
322 /* Define to 1 if you have the <sys/types.h> header file. */
323 #cmakedefine HAVE_SYS_TYPES_H 1
324
325 /* Define to 1 if you have the <sys/utsname.h> header file. */
326 #cmakedefine HAVE_SYS_UTSNAME_H 1
327
328 /* Define to 1 if you have the <sys/wait.h> header file. */
329 #cmakedefine HAVE_SYS_WAIT_H 1
330
331 /* Define if tm_zone field exists in struct tm */
332 #cmakedefine HAVE_TM_ZONE 1
333
334 /* Define if tzname array exists */
335 #cmakedefine HAVE_TZNAME 1
336
337 /* Define to 1 if you have the <unistd.h> header file. */
338 #cmakedefine HAVE_UNISTD_H 1
339
340 /* Define to 1 if you have the <windows.h> header file. */
341 #cmakedefine HAVE_WINDOWS_H 1
342
343 /* Define to 1 if you have the <winsock2.h> header file. */
344 #cmakedefine HAVE_WINSOCK2_H 1
345
346 /* HTML viewer, e.g. mozilla */
347 #cmakedefine HTML_VIEWER "${HTML_VIEWER_EXECUTABLE}"
348
349 /* Define if inet/v6defs.h needs to be included */
350 #cmakedefine NEED_INET_V6DEFS_H 1
351
352 /* Name of package */
353 #cmakedefine PACKAGE
354
355 /* Define to the address where bug reports for this package should be sent. */
356 #cmakedefine PACKAGE_BUGREPORT
357
358 /* Define to the full name of this package. */
359 #cmakedefine PACKAGE_NAME
360
361 /* Define to the full name and version of this package. */
362 #cmakedefine PACKAGE_STRING
363
364 /* Define to the one symbol short name of this package. */
365 #cmakedefine PACKAGE_TARNAME
366
367 /* Define to the version of this package. */
368 #cmakedefine PACKAGE_VERSION
369
370 /* Support for pcap-ng */
371 #cmakedefine PCAP_NG_DEFAULT 1
372
373 /* Plugin installation directory */
374 #cmakedefine PLUGIN_INSTALL_DIR "${PLUGIN_INSTALL_DIR}"
375
376 /* Define if we are using version of of the Portaudio library API */
377 #cmakedefine PORTAUDIO_API_1 1
378
379 /* Define if we have QtMultimediaWidgets */
380 #cmakedefine QT_MULTIMEDIAWIDGETS_LIB 1
381
382 /* Define if we have QtMacExtras */
383 #cmakedefine QT_MACEXTRAS_LIB 1
384
385 /* Define if we have QtWinExtras */
386 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
387
388 /* Support for packet editor */
389 #cmakedefine WANT_PACKET_EDITOR 1
390
391 /* Define to 1 if your processor stores words with the most significant byte
392    first (like Motorola and SPARC, unlike Intel and VAX). */
393 #cmakedefine WORDS_BIGENDIAN 1
394
395 /* Large file support */
396 #cmakedefine _LARGEFILE_SOURCE
397 #cmakedefine _LARGEFILE64_SOURCE
398 #cmakedefine _LARGE_FILES
399 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
400
401 /* Define WS_MSVC_NORETURN appropriately for declarations of routines that
402    never return (just like Charlie on the MTA).
403
404    Note that MSVC++ expects __declspec(noreturn) to precede the function
405    name and GCC, as far as I know, expects __attribute__((noreturn)) to
406    follow the function name, so we need two different flavors of
407    noreturn tag.  */
408 #define WS_MSVC_NORETURN @WS_MSVC_NORETURN@
409
410 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
411    `char[]'. */
412 /* Note: not use in the code */
413 #cmakedefine YYTEXT_POINTER
414
415 /* _U_ isn't needed for C++, simply don't name the variable.
416    However, we do need it for some headers that are shared between C and C++. */
417 #define _U_ ${C_UNUSED}
418
419 /* We don't bother checking for IPv6 support; the checks done in the
420    autoconf script are relics of a bygone age, where IPv6 support in
421    OSes was sometimes present by default, sometimes provided by
422    third-party add-ons, and sometimes completely absent, and where the
423    particular flavor of IPv6 support mattered to us.  We'll just wire it
424    on, unless and until that becomes an issue on platforms where people
425    use CMake. */
426 #define INET6 1
427
428 #if defined(_WIN32)
429
430    /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
431 #  ifndef WIN32
432 #    define WIN32       1
433 #  endif
434
435 #  if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
436    typedef int ssize_t;
437 #  endif
438
439    /* FIXME: Detection doesn't work */
440 #  define HAVE_NTDDNDIS_H 1
441    /* Visual C 9 (2008), Visual C 10 (2010), Visual C 11 (2012) and Visual C 12 (2013)
442     *  need these prototypes
443     * XXX: Can we use MSC_VER >= 1500 ?? */
444 #  if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700 || _MSC_VER == 1800
445 #    define NTDDI_VERSION NTDDI_WINXPSP3
446 #    define _WIN32_WINNT _WIN32_WINNT_WINXP
447 #  endif
448
449    /*
450     * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
451     */
452 #  define YY_NO_UNISTD_H
453
454
455 #  define strncasecmp strnicmp
456 #  define popen       _popen
457 #  define pclose      _pclose
458
459 #  ifndef __STDC__
460 #    define __STDC__ 0
461 #  endif
462    /* Use Unicode in Windows runtime functions. */
463 #  define UNICODE 1
464 #  define _UNICODE 1
465
466 #  define NEED_INET_V6DEFS_H 1
467 #  define NEED_STRPTIME_H 1
468 #endif