3 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
6 #define PACKAGE "wireshark"
8 /* Version number of package */
9 #define VERSION "${CPACK_PACKAGE_VERSION}"
10 #define VERSION_MAJOR "${PROJECT_MAJOR_VERSION}"
11 #define VERSION_MINOR "${PROJECT_MINOR_VERSION}"
12 #define VERSION_MICRO "${PROJECT_PATCH_VERSION}"
14 /* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
15 /* Directory for data */
16 #define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
19 #cmakedefine PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}"
21 /* Directory where plugins reside */
22 #define PLUGIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}"
24 /* Define to 1 if we want to use pcap-ng as our default file format */
25 #cmakedefine PCAP_NG_DEFAULT 1
27 /* Define to 1 if we want to enable plugins */
28 #cmakedefine HAVE_PLUGINS 1
30 /* Link plugins statically into Wireshark */
31 #cmakedefine ENABLE_STATIC 1
33 /* Define to 1 if you have the <arpa/inet.h> header file. */
34 #cmakedefine HAVE_ARPA_INET_H 1
36 /* Define to 1 if you have the <arpa/nameser.h> header file. */
37 #cmakedefine HAVE_ARPA_NAMESER_H 1
39 /* Define to 1 if you have the <direct.h> header file. */
40 #cmakedefine HAVE_DIRECT_H 1
42 /* Define to 1 if you have the <dirent.h> header file. */
43 #cmakedefine HAVE_DIRENT_H 1
45 /* Define to 1 if you have the <dlfcn.h> header file. */
46 #cmakedefine HAVE_DLFCN_H 1
48 /* Define to 1 if you have the dladdr function */
49 #cmakedefine HAVE_DLADDR 1
51 /* Define to 1 if you have the <fcntl.h> header file. */
52 #cmakedefine HAVE_FCNTL_H 1
54 /* Define to 1 if you have the 'getopt' function. */
55 #cmakedefine HAVE_GETOPT 1
57 /* Define to 1 if you have the <getopt.h> header file. */
58 #cmakedefine HAVE_GETOPT_H 1
60 /* Define to 1 if you have the `chown' function. */
61 #cmakedefine HAVE_CHOWN 1
63 /* Define to 1 if you have the `gethostbyname2' function. */
64 #cmakedefine HAVE_GETHOSTBYNAME2 1
66 /* Define to 1 if you have the `getprotobynumber' function. */
67 #cmakedefine HAVE_GETPROTOBYNUMBER 1
69 /* Define to use the airpcap library */
70 #cmakedefine HAVE_AIRPCAP 1
72 /* Define to use the libnl library */
73 #cmakedefine HAVE_LIBNL 1
75 /* Define to use the libnl library */
76 #cmakedefine HAVE_LIBNL1 1
78 /* Define to use the libnl library */
79 #cmakedefine HAVE_LIBNL2 1
81 /* Define to use the libnl library */
82 #cmakedefine HAVE_LIBNL3 1
84 /* Define to use C ares library */
85 #cmakedefine HAVE_C_ARES 1
87 /* Define to use SMI SNMP library */
88 #cmakedefine HAVE_LIBSMI 1
90 /* Define to use GEOIP library */
91 #cmakedefine HAVE_GEOIP 1
93 /* Define if GEOIP library supports IPv6 (GeoIP 1.4.5 and later) */
94 #cmakedefine HAVE_GEOIP_V6 1
96 /* Define to use capabilities library */
97 #cmakedefine HAVE_LIBCAP 1
99 /* Define to use GNU ADNS library */
100 #cmakedefine HAVE_GNU_ADNS 1
102 /* Define to use heimdal kerberos */
103 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
105 /* Define if inet_ntop() prototype exists */
106 #cmakedefine HAVE_INET_NTOP_PROTO 1
108 /* Define to 1 if you have the <inttypes.h> header file. */
109 #cmakedefine HAVE_INTTYPES_H 1
111 /* Define to 1 if you have the `issetugid' function. */
112 #cmakedefine HAVE_ISSETUGID 1
114 /* Define to use kerberos */
115 #cmakedefine HAVE_KERBEROS 1
117 /* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */
118 #cmakedefine HAVE_KEYTYPE_ARCFOUR_56 1
120 /* Define to 1 if you have the <lauxlib.h> header file. */
121 #cmakedefine HAVE_LAUXLIB_H 1
123 /* Define to use libgcrypt */
124 #cmakedefine HAVE_LIBGCRYPT 1
126 /* Define to use gnutls library */
127 #cmakedefine HAVE_LIBGNUTLS 1
129 /* Define to use libpcap library */
130 #cmakedefine HAVE_LIBPCAP 1
132 /* Define to use dbus-glib library */
133 #cmakedefine HAVE_LIBDBUS 1
135 /* Define to use libportaudio library */
136 #cmakedefine HAVE_LIBPORTAUDIO 1
138 /* Define to use libz library */
139 #cmakedefine HAVE_LIBZ 1
141 /* Define to 1 if you have the `inflatePrime' function */
142 #cmakedefine HAVE_INFLATEPRIME 1
144 /* Define to use Lua */
145 #cmakedefine HAVE_LUA 1
147 /* Define to 1 if you have the <lualib.h> header file. */
148 #cmakedefine HAVE_LUALIB_H 1
150 /* Define to 1 if you have the <lua.h> header file. */
151 #cmakedefine HAVE_LUA_H 1
153 /* Define to 1 if you have libpython. */
154 #cmakedefine HAVE_PYTHON 1
156 /* Define to 1 if you have the <memory.h> header file. */
157 #cmakedefine HAVE_MEMORY_H 1
159 /* Define to use MIT kerberos */
160 #cmakedefine HAVE_MIT_KERBEROS 1
162 /* Define to 1 if you have the `mkdtemp' function. */
163 #cmakedefine HAVE_MKDTEMP 1
165 /* Define to 1 if you have the `mkstemp' function. */
166 #cmakedefine HAVE_MKSTEMP 1
168 /* Define to 1 if you have the `mmap' function. */
169 #cmakedefine HAVE_MMAP 1
171 /* Define to 1 if you have the `mprotect' function. */
172 #cmakedefine HAVE_MPROTECT 1
174 /* Define to 1 if you have the <netdb.h> header file. */
175 #cmakedefine HAVE_NETDB_H 1
177 /* Define to 1 if you have the <netinet/in.h> header file. */
178 #cmakedefine HAVE_NETINET_IN_H 1
180 /* Define to enable support for Net-SNMP */
181 #cmakedefine HAVE_NET_SNMP 1
183 /* Define to 1 if you have the <net-snmp/library/default_store.h> header file.
185 #cmakedefine HAVE_NET_SNMP_LIBRARY_DEFAULT_STORE_H 1
187 /* Define to 1 if you have the <net-snmp/net-snmp-config.h> header file. */
188 #cmakedefine HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1
190 /* Define to 1 if you have the <Ntddndis.h> header file. */
191 #cmakedefine HAVE_NTDDNDIS_H 1
193 /* Define to 1 if you have OS X frameworks */
194 #cmakedefine HAVE_OS_X_FRAMEWORKS 1
196 /* Define to 1 if you have the `pcap_breakloop' function. */
197 #cmakedefine HAVE_PCAP_BREAKLOOP 1
199 /* FIXME: The code (at least) in dumpcap assumes that PCAP_CREATE is not
200 * available on Windows - but we detect it in winpcap */
202 /* Define to 1 if you have the `pcap_create' function. */
203 #cmakedefine HAVE_PCAP_CREATE 1
206 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
207 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
209 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
210 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
212 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
213 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
215 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
216 declares pcap_if_t. */
217 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
219 /* Define to 1 if you have the `pcap_freecode' function. */
220 #cmakedefine HAVE_PCAP_FREECODE 1
222 /* Define to 1 if you have the `pcap_free_datalinks' function. */
223 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
225 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
226 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
228 /* Define to 1 if you have the `pcap_lib_version' function. */
229 #cmakedefine HAVE_PCAP_LIB_VERSION 1
231 /* Define to 1 if you have the `pcap_list_datalinks' function. */
232 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
234 /* Define to 1 if you have the `pcap_open_dead' function. */
235 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
237 /* Define to 1 if you have the `pcap_set_datalink' function. */
238 #cmakedefine HAVE_PCAP_SET_DATALINK 1
240 /* Define if libpcap version is known */
241 #cmakedefine HAVE_PCAP_VERSION 1
243 /* Define if plugins are enabled */
244 #cmakedefine HAVE_PLUGINS 1
246 /* Define if rpcap:// type remote capture is supported */
247 #cmakedefine HAVE_PCAP_REMOTE 1
248 #cmakedefine HAVE_REMOTE 1
250 /* Define to 1 if you have the <portaudio.h> header file. */
251 #cmakedefine HAVE_PORTAUDIO_H 1
253 /* Define if sa_len field exists in struct sockaddr */
254 #cmakedefine HAVE_SA_LEN 1
256 /* Define to 1 if you have the <stdarg.h> header file. */
257 #cmakedefine HAVE_STDARG_H 1
259 /* Define to 1 if you have the <stddef.h> header file. */
260 #cmakedefine HAVE_STDDEF_H 1
262 /* Define to 1 if you have the <stdint.h> header file. */
263 #cmakedefine HAVE_STDINT_H 1
265 /* Define to 1 if you have the <stdlib.h> header file. */
266 #cmakedefine HAVE_STDLIB_H 1
268 /* Define to 1 if you have the <strings.h> header file. */
269 #cmakedefine HAVE_STRINGS_H 1
271 /* Define to 1 if you have the <string.h> header file. */
272 #cmakedefine HAVE_STRING_H 1
274 /* Define to 1 if you have the `sysconf' function. */
275 #cmakedefine HAVE_SYSCONF 1
277 /* Define to 1 if you have the <sys/ioctl.h> header file. */
278 #cmakedefine HAVE_SYS_IOCTL_H 1
280 /* Define to 1 if you have the <sys/param.h> header file. */
281 #cmakedefine HAVE_SYS_PARAM_H 1
283 /* Define to 1 if you have the <sys/socket.h> header file. */
284 #cmakedefine HAVE_SYS_SOCKET_H 1
286 /* Define to 1 if you have the <sys/sockio.h> header file. */
287 #cmakedefine HAVE_SYS_SOCKIO_H 1
289 /* Define to 1 if you have the <sys/stat.h> header file. */
290 #cmakedefine HAVE_SYS_STAT_H 1
292 /* Define to 1 if you have the <sys/time.h> header file. */
293 #cmakedefine HAVE_SYS_TIME_H 1
295 /* Define to 1 if you have the <sys/types.h> header file. */
296 #cmakedefine HAVE_SYS_TYPES_H 1
298 /* Define to 1 if you have the <sys/utsname.h> header file. */
299 #cmakedefine HAVE_SYS_UTSNAME_H 1
301 /* Define to 1 if you have the <sys/wait.h> header file. */
302 #cmakedefine HAVE_SYS_WAIT_H 1
304 /* Define to 1 if you have the <unistd.h> header file. */
305 #cmakedefine HAVE_UNISTD_H 1
307 /* Define to 1 if you have the <windows.h> header file. */
308 #cmakedefine HAVE_WINDOWS_H 1
310 /* Define to 1 if you have the <winsock2.h> header file. */
311 #cmakedefine HAVE_WINSOCK2_H 1
313 /* Define to 1 if tm_zone field exists in struct tm. */
314 #cmakedefine HAVE_TM_ZONE 1
316 /* Define to 1 if tzname array exists. */
317 #cmakedefine HAVE_TZNAME 1
319 /* HTML viewer, e.g. mozilla */
320 #cmakedefine HTML_VIEWER
322 /* Define if <inttypes.h> defines PRI[doxu]64 macros */
323 /* Note: always defines PRI[doxu]64 macros so inttypes.h becomes useless.*/
324 #cmakedefine INTTYPES_H_DEFINES_FORMATS 1
326 /* Define unless inet/aton.h needs to be included */
327 #cmakedefine HAVE_INET_ATON_H
329 /* Define if inet/v6defs.h needs to be included */
330 #cmakedefine NEED_INET_V6DEFS_H 1
332 /* Define if strptime.h needs to be included */
333 #cmakedefine NEED_STRPTIME_H 1
335 /* Define if linux/nl80211.h defines NL80211_CMD_SET_CHANNEL */
336 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
338 /* Define if linux/nl80211.h is new enough */
339 #cmakedefine HAVE_NL80211 1
341 /* Name of package */
344 /* Define to the address where bug reports for this package should be sent. */
345 #cmakedefine PACKAGE_BUGREPORT
347 /* Define to the full name of this package. */
348 #cmakedefine PACKAGE_NAME
350 /* Define to the full name and version of this package. */
351 #cmakedefine PACKAGE_STRING
353 /* Define to the one symbol short name of this package. */
354 #cmakedefine PACKAGE_TARNAME
356 /* Define to the version of this package. */
357 #cmakedefine PACKAGE_VERSION
359 /* Plugin installation directory */
360 #cmakedefine PLUGIN_DIR
362 /* Define if we are using version of of the Portaudio library API */
363 #cmakedefine PORTAUDIO_API_1 1
365 /* Define to 1 if you have the <pwd.h> header file. */
366 #cmakedefine HAVE_PWD_H 1
368 /* Define to 1 if you have the <grp.h> header file. */
369 #cmakedefine HAVE_GRP_H 1
371 /* Define to 1 if you have the ANSI C header files. */
372 /* Note: not use in the code */
373 #cmakedefine STDC_HEADERS 1
375 /* Define to 1 if your processor stores words with the most significant byte
376 first (like Motorola and SPARC, unlike Intel and VAX). */
377 #cmakedefine WORDS_BIGENDIAN 1
379 /* Large file support */
380 #cmakedefine _LARGEFILE_SOURCE
381 #cmakedefine _LARGEFILE64_SOURCE
382 #cmakedefine _LARGE_FILES
383 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
385 /* Define WS_MSVC_NORETURN appropriately for declarations of routines that
386 never return (just like Charlie on the MTA).
388 Note that MSVC++ expects __declspec(noreturn) to precede the function
389 name and GCC, as far as I know, expects __attribute__((noreturn)) to
390 follow the function name, so we need two different flavors of
392 #define WS_MSVC_NORETURN @WS_MSVC_NORETURN@
394 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
396 /* Note: not use in the code */
397 #cmakedefine YYTEXT_POINTER
399 /* _U_ isn't needed for C++, simply don't name the variable.
400 However, we do need it for some headers that are shared between C and C++. */
401 #define _U_ ${C_UNUSED}
404 # if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
408 /* FIXME: Detection doesn't work */
409 # define HAVE_NTDDNDIS_H 1
410 /* Visual C 9 (2008), Visual C 10 (2010) and Visual C 11 (2012) need these
412 * XXX: Can we use MSC_VER >= 1500 ?? */
413 # if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700
414 # define NTDDI_VERSION NTDDI_WIN2K
415 # define _WIN32_WINNT _WIN32_WINNT_WIN2K
419 * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
421 # define YY_NO_UNISTD_H
424 # define strncasecmp strnicmp
425 # define popen _popen
426 # define pclose _pclose
431 /* Use Unicode in Windows runtime functions. */
436 # define NEED_INET_V6DEFS_H 1
437 # define HTML_VIEWER "mozilla"
438 # define NEED_STRPTIME_H 1