CMake: fix broken oss-fuzz build due to the -pie option
[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 /* Define to 1 if we want to enable plugins */
30 #cmakedefine HAVE_PLUGINS 1
31
32 /*  Define to 1 if we check hf conflict */
33 #cmakedefine ENABLE_CHECK_FILTER 1
34
35 /* Link Wireshark libraries statically */
36 #cmakedefine ENABLE_STATIC 1
37
38 /* Enable AirPcap */
39 #cmakedefine HAVE_AIRPCAP 1
40
41 /* Define to 1 if you have the <alloca.h> header file. */
42 #cmakedefine HAVE_ALLOCA_H 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 `bpf_image' function. */
48 #cmakedefine HAVE_BPF_IMAGE 1
49
50 /* Define to use c-ares library */
51 #cmakedefine HAVE_C_ARES 1
52
53 /* Define to 1 if you have the <fcntl.h> header file. */
54 #cmakedefine HAVE_FCNTL_H 1
55
56 /* Define to use the MaxMind DB library */
57 #cmakedefine HAVE_MAXMINDDB 1
58
59 /* Define to 1 if you have the <ifaddrs.h> header file. */
60 #cmakedefine HAVE_IFADDRS_H 1
61
62 /* Define to 1 if yu have the `fseeko` function. */
63 #cmakedefine HAVE_FSEEKO 1
64
65 /* Define to 1 if you have the `getexecname' function. */
66 #cmakedefine HAVE_GETEXECNAME 1
67
68 /* Define to 1 if you have the `getifaddrs' function. */
69 #cmakedefine HAVE_GETIFADDRS 1
70
71 /* Define if LIBSSH support is enabled */
72 #cmakedefine HAVE_LIBSSH 1
73
74 /* Define if JSONGLIB support is enabled */
75 #cmakedefine HAVE_JSONGLIB 1
76
77 /* Define if LIBSSH has ssh_userauth_agent() function */
78 #cmakedefine HAVE_SSH_USERAUTH_AGENT 1
79
80 /* Define if you have the 'dlget' function. */
81 #cmakedefine HAVE_DLGET 1
82
83 /* Define if you have the 'getexecname' function. */
84 #cmakedefine HAVE_GETEXECNAME 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 1 if you have the `smi' library (-lsmi). */
138 #cmakedefine HAVE_LIBSMI 1
139
140 /* Define to use zlib library */
141 #cmakedefine HAVE_ZLIB 1
142
143 /* Define to use lz4 library */
144 #cmakedefine HAVE_LZ4 1
145
146 /* Check for lz4frame */
147 #cmakedefine HAVE_LZ4FRAME_H 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 `mkstemps' function. */
171 #cmakedefine HAVE_MKSTEMPS 1
172
173 /* Define to 1 if you have the `mmap' function. */
174 #cmakedefine HAVE_MMAP 1
175
176 /* Define to 1 if you have the `mprotect' function. */
177 #cmakedefine HAVE_MPROTECT 1
178
179 /* Define to 1 if you have the <netdb.h> header file. */
180 #cmakedefine HAVE_NETDB_H 1
181
182 /* Define to 1 if you have the <netinet/in.h> header file. */
183 #cmakedefine HAVE_NETINET_IN_H 1
184
185 /* nl80211.h is new enough */
186 #cmakedefine HAVE_NL80211 1
187
188 /* SET_CHANNEL is supported */
189 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
190
191 /* SPLIT_WIPHY_DUMP is supported */
192 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
193
194 /* VHT_CAPABILITY is supported */
195 #cmakedefine HAVE_NL80211_VHT_CAPABILITY 1
196
197 /* Define to 1 if you have macOS frameworks */
198 #cmakedefine HAVE_MACOS_FRAMEWORKS 1
199
200 /* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
201 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
202
203 /* Define if pcap_breakloop is known */
204 #cmakedefine HAVE_PCAP_BREAKLOOP 1
205
206 /* Define to 1 if you have the `pcap_create' function. */
207 #cmakedefine HAVE_PCAP_CREATE 1
208
209 /* Define to 1 if the capture buffer size can be set. */
210 #cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1
211
212 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
213 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
214
215 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
216 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
217
218 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
219 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
220
221 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
222    declares pcap_if_t. */
223 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
224
225 /* Define to 1 if you have the `pcap_freecode' function. */
226 #cmakedefine HAVE_PCAP_FREECODE 1
227
228 /* Define to 1 if you have the `pcap_free_datalinks' function. */
229 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
230
231 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
232 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
233
234 /* Define to 1 if you have the `pcap_lib_version' function. */
235 #cmakedefine HAVE_PCAP_LIB_VERSION 1
236
237 /* Define to 1 if you have the `pcap_list_datalinks' function. */
238 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
239
240 /* Define to 1 if you have the `pcap_open' function. */
241 #cmakedefine HAVE_PCAP_OPEN 1
242
243 /* Define to 1 if you have the `pcap_open_dead' function. */
244 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
245
246 /* Define to 1 if you have libpcap/WinPcap remote capturing support. */
247 #cmakedefine HAVE_PCAP_REMOTE 1
248
249 /* Define to 1 if you have the `pcap_set_datalink' function. */
250 #cmakedefine HAVE_PCAP_SET_DATALINK 1
251
252 /* Define to 1 if you have the `pcap_setsampling' function. */
253 #cmakedefine HAVE_PCAP_SETSAMPLING 1
254
255 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
256 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
257
258 /* Define to 1 if you have the `pcap_set_tstamp_type' function. */
259 #cmakedefine HAVE_PCAP_SET_TSTAMP_TYPE 1
260
261 /* Define to 1 if you have the <pwd.h> header file. */
262 #cmakedefine HAVE_PWD_H 1
263
264 /* Define to 1 if you have the optreset variable */
265 #cmakedefine HAVE_OPTRESET 1
266
267 /* Define if sa_len field exists in struct sockaddr */
268 #cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
269
270 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
271 #cmakedefine HAVE_SBC 1
272
273 /* Define to 1 if you have the SpanDSP library. */
274 #cmakedefine HAVE_SPANDSP 1
275
276 /* Define to 1 if you have the bcg729 library. */
277 #cmakedefine HAVE_BCG729 1
278
279 /* Define to 1 if you have the lixbml2 library. */
280 #cmakedefine HAVE_LIBXML2 1
281
282 /* Define to 1 if you have the `setresgid' function. */
283 #cmakedefine HAVE_SETRESGID 1
284
285 /* Define to 1 if you have the `setresuid' function. */
286 #cmakedefine HAVE_SETRESUID 1
287
288 /* Define to 1 if you have the WinSparkle library */
289 #cmakedefine HAVE_SOFTWARE_UPDATE 1
290
291 /* Define if you have the 'strptime' function. */
292 #cmakedefine HAVE_STRPTIME 1
293
294 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
295 #cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1
296
297 /* Define if st_flags field exists in struct stat */
298 #cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
299
300 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
301 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
302
303 /* Define to 1 if you have the <sys/ioctl.h> header file. */
304 #cmakedefine HAVE_SYS_IOCTL_H 1
305
306 /* Define to 1 if you have the <sys/socket.h> header file. */
307 #cmakedefine HAVE_SYS_SOCKET_H 1
308
309 /* Define to 1 if you have the <sys/sockio.h> header file. */
310 #cmakedefine HAVE_SYS_SOCKIO_H 1
311
312 /* Define to 1 if you have the <sys/time.h> header file. */
313 #cmakedefine HAVE_SYS_TIME_H 1
314
315 /* Define to 1 if you have the <sys/utsname.h> header file. */
316 #cmakedefine HAVE_SYS_UTSNAME_H 1
317
318 /* Define to 1 if you have the <sys/wait.h> header file. */
319 #cmakedefine HAVE_SYS_WAIT_H 1
320
321 /* Define if tm_zone field exists in struct tm */
322 #cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
323
324 /* Define if tzname array exists */
325 #cmakedefine HAVE_TZNAME 1
326
327 /* Define to 1 if you have the <unistd.h> header file. */
328 #cmakedefine HAVE_UNISTD_H 1
329
330 /* Name of package */
331 #cmakedefine PACKAGE
332
333 /* Define to the address where bug reports for this package should be sent. */
334 #cmakedefine PACKAGE_BUGREPORT
335
336 /* Define to the full name of this package. */
337 #cmakedefine PACKAGE_NAME
338
339 /* Define to the full name and version of this package. */
340 #cmakedefine PACKAGE_STRING
341
342 /* Define to the one symbol short name of this package. */
343 #cmakedefine PACKAGE_TARNAME
344
345 /* Define to the version of this package. */
346 #cmakedefine PACKAGE_VERSION
347
348 /* Support for pcapng */
349 #cmakedefine PCAP_NG_DEFAULT 1
350
351 /* Define if we have QtMultimedia */
352 #cmakedefine QT_MULTIMEDIA_LIB 1
353
354 /* Define if we have QtMacExtras */
355 #cmakedefine QT_MACEXTRAS_LIB 1
356
357 /* Define if we have QtWinExtras */
358 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
359
360 /* Build androiddump with libpcap instead of wireshark stuff */
361 #cmakedefine ANDROIDDUMP_USE_LIBPCAP 1
362
363 /* Large file support */
364 #cmakedefine _LARGEFILE_SOURCE
365 #cmakedefine _LARGEFILE64_SOURCE
366 #cmakedefine _LARGE_FILES
367 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
368
369 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
370    `char[]'. */
371 /* Note: not use in the code */
372 #cmakedefine YYTEXT_POINTER
373
374 #if defined(_WIN32)
375    /*
376     * Make sure everyone is using the same API and that it's sufficient
377     * for our needs.
378     * This should match the following:
379     * - The <compatibility><application> section in image\wireshark.exe.manifest.in
380     * - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
381     * - The VersionNT parts of packaging\wix\Prerequisites.wxi
382     */
383 #  if defined(NTDDI_VERSION)
384 #    error NTDDI_VERSION already defined.
385 #  endif
386 #  define NTDDI_VERSION NTDDI_WIN7
387 #  if defined(_WIN32_WINNT)
388 #    error _WIN32_WINNT already defined.
389 #  endif
390 #  define _WIN32_WINNT _WIN32_WINNT_WIN7
391
392    /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
393 #  ifndef WIN32
394 #    define WIN32       1
395 #  endif
396
397 #  if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
398    typedef int ssize_t;
399 #  endif
400
401    /*
402     * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
403     */
404 #  define YY_NO_UNISTD_H
405
406 #  define strncasecmp strnicmp
407 #  define popen       _popen
408 #  define pclose      _pclose
409
410 #  ifndef __STDC__
411 #    define __STDC__ 0
412 #  endif
413    /* Use Unicode in Windows runtime functions. */
414 #  define UNICODE 1
415 #  define _UNICODE 1
416
417 #  define NEED_STRPTIME_H 1
418 #endif
419
420 #include <ws_diag_control.h>
421
422 #endif /* __CONFIG_H__ */