]> git.ipfire.org Git - thirdparty/openvpn.git/blame - config.h.cmake.in
remove repetitive words in documentation and comments
[thirdparty/openvpn.git] / config.h.cmake.in
CommitLineData
01341840
AS
1
2/* Configuration settings */
3#define CONFIGURE_DEFINES "N/A"
4
5/* Enable async push */
6#cmakedefine ENABLE_ASYNC_PUSH
7
8/* Use mbed TLS library */
9#cmakedefine ENABLE_CRYPTO_MBEDTLS
10
11/* Use Openssl */
12#cmakedefine ENABLE_CRYPTO_OPENSSL
13
14/* Use wolfSSL crypto library */
15#cmakedefine ENABLE_CRYPTO_WOLFSSL
16
17/* Enable shared data channel offload */
18#cmakedefine ENABLE_DCO
19
20/* Enable debugging support (needed for verb>=4) */
21#define ENABLE_DEBUG 1
22
23/* We have persist tun capability */
24#cmakedefine ENABLE_FEATURE_TUN_PERSIST
25
26/* Enable internal fragmentation support */
27#define ENABLE_FRAGMENT 1
28
29/* Enable linux data channel offload */
30#cmakedefine ENABLE_LINUXDCO
31
32/* Enable LZ4 compression library */
33#cmakedefine ENABLE_LZ4
34
35/* Enable LZO compression library */
36#cmakedefine ENABLE_LZO
37
1da3496a
FL
38/* Enable NTLMv2 proxy support */
39#define ENABLE_NTLM 1
40
01341840
AS
41/* Enable management server capability */
42#define ENABLE_MANAGEMENT 1
43
44/* Enable OFB and CFB cipher modes */
45#define ENABLE_OFB_CFB_MODE
46
47/* Enable PKCS11 */
e8881ec6 48#cmakedefine ENABLE_PKCS11
01341840
AS
49
50/* Enable plug-in support */
51#define ENABLE_PLUGIN 1
52
53/* Enable TCP Server port sharing */
54#cmakedefine ENABLE_PORT_SHARE
55
56/* SELinux support */
57#cmakedefine ENABLE_SELINUX
58
59/* enable sitnl support */
60#cmakedefine ENABLE_SITNL
61
62/* Enable systemd integration */
63/* #undef ENABLE_SYSTEMD */
64
65/* Enable --x509-username-field feature */
66#cmakedefine ENABLE_X509ALTUSERNAME
67
68/* Compiler supports anonymous unions */
69#define HAVE_ANONYMOUS_UNION_SUPPORT
70
71/* Define to 1 if you have the <arpa/inet.h> header file. */
72#cmakedefine HAVE_ARPA_INET_H 1
73
74/* Define to 1 if you have the `basename' function. */
75#cmakedefine HAVE_BASENAME
76
77/* Define to 1 if you have the `chdir' function. */
78#cmakedefine HAVE_CHDIR
79
80/* Define to 1 if you have the `chroot' function. */
81#cmakedefine HAVE_CHROOT
82
83/* Define to 1 if you have the `chsize' function. */
84#cmakedefine HAVE_CHSIZE
85
86/* struct cmsghdr needed for extended socket error support */
87#cmakedefine HAVE_CMSGHDR
88
e8881ec6
FL
89/* git version information in config-version.h */
90#cmakedefine HAVE_CONFIG_VERSION_H
91
01341840
AS
92/* Define to 1 if you have the `daemon' function. */
93#cmakedefine HAVE_DAEMON
94
95/* Define to 1 if you have the declaration of `SO_MARK', and to 0 if you
96don't. */
97#cmakedefine01 HAVE_DECL_SO_MARK
98
99/* Define to 1 if you have the <direct.h> header file. */
100#cmakedefine HAVE_DIRECT_H
101
102/* Define to 1 if you have the `dirname' function. */
103#cmakedefine HAVE_DIRNAME
104
105/* Define to 1 if you have the <dlfcn.h> header file. */
106#cmakedefine HAVE_DLFCN_H
107
108/* Define to 1 if you have the <dmalloc.h> header file. */
109#cmakedefine HAVE_DMALLOC_H
110
111/* Define to 1 if you have the `dup' function. */
112#cmakedefine HAVE_DUP
113
114/* Define to 1 if you have the `dup2' function. */
115#cmakedefine HAVE_DUP2
116
117/* Define to 1 if you have the `epoll_create' function. */
118#cmakedefine HAVE_EPOLL_CREATE
119
120/* Define to 1 if you have the <err.h> header file. */
121#cmakedefine HAVE_ERR_H
122
123/* Crypto library supports keying material exporter */
124#define HAVE_EXPORT_KEYING_MATERIAL 1
125
126/* Define to 1 if you have the <fcntl.h> header file. */
127#cmakedefine HAVE_FCNTL_H
128
129/* Define to 1 if you have the `fork' function. */
130#cmakedefine HAVE_FORK
131#cmakedefine HAVE_EXECVE
132
133/* Define to 1 if you have the `ftruncate' function. */
134#cmakedefine HAVE_FTRUNCATE
135
136/* Define to 1 if you have the `getgrnam' function. */
137#cmakedefine HAVE_GETGRNAM
138
139/* Define to 1 if you have the `getpeereid' function. */
140#cmakedefine HAVE_GETPEEREID
141
142/* Define to 1 if you have the `getpwnam' function. */
143#cmakedefine HAVE_GETPWNAM
144
145/* Define to 1 if you have the `getrlimit' function. */
28871fec 146#cmakedefine HAVE_GETRLIMIT
01341840
AS
147
148/* Define to 1 if you have the `getsockname' function. */
149#cmakedefine HAVE_GETSOCKNAME
150
151/* Define to 1 if you have the `gettimeofday' function. */
152#cmakedefine HAVE_GETTIMEOFDAY
153
154/* Define to 1 if you have the <grp.h> header file. */
155#cmakedefine HAVE_GRP_H
156
157/* struct in_pktinfo needed for IP_PKTINFO support */
158#cmakedefine HAVE_IN_PKTINFO
159
160/* Define to 1 if you have the <io.h> header file. */
161#cmakedefine HAVE_IO_H
162
163/* struct in_pktinfo.ipi_spec_dst needed for IP_PKTINFO support */
164#cmakedefine HAVE_IPI_SPEC_DST
165
166/* Define to 1 if you have the <libgen.h> header file. */
167#cmakedefine HAVE_LIBGEN_H
168
169/* Define to 1 if you have the <limits.h> header file. */
170#define HAVE_LIMITS_H 1
171
172/* Define to 1 if you have the <linux/if_tun.h> header file. */
173#cmakedefine HAVE_LINUX_IF_TUN_H
174
175/* Define to 1 if you have the <linux/sockios.h> header file. */
176#cmakedefine HAVE_LINUX_SOCKIOS_H
177
178/* Define to 1 if you have the <linux/types.h> header file. */
179#cmakedefine HAVE_LINUX_TYPES_H
180
181/* Define to 1 if you have the <lzoconf.h> header file. */
182#define HAVE_LZO_CONF_H
183
184/* Define to 1 if you have the <lzo1x.h> header file. */
185#define HAVE_LZO1X_H 1
186
187/* Define to 1 if you have the <lzoutil.h> header file. */
188#define HAVE_LZOUTIL_H 1
189
190/* Define to 1 if you have the `mlockall' function. */
191#cmakedefine HAVE_MLOCKALL
192
193/* struct msghdr needed for extended socket error support */
194#cmakedefine HAVE_MSGHDR
195
196/* Define to 1 if you have the <netdb.h> header file. */
197#cmakedefine HAVE_NETDB_H
198
199/* Define to 1 if you have the <netinet/in.h> header file. */
200#cmakedefine HAVE_NETINET_IN_H
201
01341840
AS
202/* Define to 1 if you have the <netinet/ip.h> header file. */
203#cmakedefine HAVE_NETINET_IP_H
204
205/* Define to 1 if you have the <netinet/tcp.h> header file. */
206#undef HAVE_NETINET_TCP_H
207
208/* Define to 1 if you have the <net/if.h> header file. */
209#cmakedefine HAVE_NET_IF_H
210
211/* Define to 1 if you have the <net/if_tun.h> header file. */
212#cmakedefine HAVE_NET_IF_TUN_H
213
214/* Define to 1 if you have the <net/if_utun.h> header file. */
215#cmakedefine01 HAVE_NET_IF_UTUN_H
216
217/* Define to 1 if you have the <net/tun/if_tun.h> header file. */
218#cmakedefine HAVE_NET_TUN_IF_TUN_H
219
220/* Define to 1 if you have the `nice' function. */
4d8ee61c 221#cmakedefine HAVE_NICE
01341840
AS
222
223/* Define to 1 if you have the `openlog' function. */
8ae6c48d 224#cmakedefine HAVE_OPENLOG
01341840
AS
225
226/* OpenSSL engine support available */
227#undef HAVE_OPENSSL_ENGINE
228
229/* Define to 1 if you have the `poll' function. */
230#undef HAVE_POLL
231
232/* Define to 1 if you have the <poll.h> header file. */
233#cmakedefine HAVE_POLL_H
234
235/* Define to 1 if you have the `putenv' function. */
236#undef HAVE_PUTENV
237
238/* Define to 1 if you have the <pwd.h> header file. */
239#cmakedefine HAVE_PWD_H
240
01341840
AS
241
242/* Define to 1 if you have the `recvmsg' function. */
243#cmakedefine HAVE_RECVMSG
244#cmakedefine HAVE_SENDMSG
245
246/* Define to 1 if you have the <resolv.h> header file. */
247#cmakedefine HAVE_RESOLV_H
248
249/* sa_family_t, needed to hold AF_* info */
250#cmakedefine HAVE_SA_FAMILY_T
251
252/* Define to 1 if you have the `sd_booted' function. */
253#undef HAVE_SD_BOOTED
254
255/* Define to 1 if you have the `setgid' function. */
256#cmakedefine HAVE_SETGID
257
258/* Define to 1 if you have the `setgroups' function. */
259#undef HAVE_SETGROUPS
260
261/* Define to 1 if you have the `setsid' function. */
8ae6c48d 262#cmakedefine HAVE_SETSID
01341840
AS
263
264/* Define to 1 if you have the `setsockopt' function. */
265#define HAVE_SETSOCKOPT 1
266
267/* Define to 1 if you have the `setuid' function. */
268#cmakedefine HAVE_SETUID
269
270/* Define to 1 if you have the <signal.h> header file. */
271#undef HAVE_SIGNAL_H
272
273/* Define to 1 if you have the `socket' function. */
274#undef HAVE_SOCKET
275
276/* struct sock_extended_err needed for extended socket error support */
277#undef HAVE_SOCK_EXTENDED_ERR
278
279/* Define to 1 if you have the `stat' function. */
280#define HAVE_STAT 1
281
282/* Define to 1 if you have the <stdarg.h> header file. */
283#define HAVE_STDARG_H 1
284
285/* Define to 1 if you have the <stdint.h> header file. */
286#define HAVE_STDINT_H 1
287
288/* Define to 1 if you have the <stdio.h> header file. */
289#define HAVE_STDIO_H 1
290
291/* Define to 1 if you have the <stdlib.h> header file. */
292#define HAVE_STDLIB_H 1
293
294/* Define to 1 if you have the `strdup' function. */
295#undef HAVE_STRDUP
296
297/* Define to 1 if you have the <strings.h> header file. */
298#define HAVE_STRINGS_H 1
299
300/* Define to 1 if you have the <string.h> header file. */
301#define HAVE_STRING_H 1
302
303/* Define to 1 if you have the `strsep' function. */
304#undef HAVE_STRSEP
305
306/* Define to 1 if you have the `syslog' function. */
8ae6c48d 307#cmakedefine HAVE_SYSLOG
01341840
AS
308
309/* Define to 1 if you have the <syslog.h> header file. */
310#cmakedefine HAVE_SYSLOG_H
311
312/* Define to 1 if you have the `system' function. */
313#undef HAVE_SYSTEM
314
315/* Define to 1 if you have the <systemd/sd-daemon.h> header file. */
316#undef HAVE_SYSTEMD_SD_DAEMON_H
317
318/* Define to 1 if you have the <sys/epoll.h> header file. */
319#cmakedefine HAVE_SYS_EPOLL_H
320
321/* Define to 1 if you have the <sys/file.h> header file. */
322#undef HAVE_SYS_FILE_H
323
324/* Define to 1 if you have the <sys/inotify.h> header file. */
325#cmakedefine HAVE_SYS_INOTIFY_H
326
327/* Define to 1 if you have the <sys/ioctl.h> header file. */
328#cmakedefine HAVE_SYS_IOCTL_H
329
330/* Define to 1 if you have the <sys/kern_control.h> header file. */
331#undef HAVE_SYS_KERN_CONTROL_H
332
333/* Define to 1 if you have the <sys/mman.h> header file. */
334#cmakedefine HAVE_SYS_MMAN_H
335
336/* Define to 1 if you have the <sys/socket.h> header file. */
337#cmakedefine HAVE_SYS_SOCKET_H
338
339/* Define to 1 if you have the <sys/sockio.h> header file. */
efbedf21 340#cmakedefine HAVE_SYS_SOCKIO_H
01341840
AS
341
342/* Define to 1 if you have the <sys/stat.h> header file. */
343#define HAVE_SYS_STAT_H 1
344
345/* Define to 1 if you have the <sys/time.h> header file. */
346#cmakedefine HAVE_SYS_TIME_H
347
348/* Define to 1 if you have the <sys/types.h> header file. */
349#undef HAVE_SYS_TYPES_H
350
351/* Define to 1 if you have the <sys/uio.h> header file. */
352#cmakedefine HAVE_SYS_UIO_H
353
354/* Define to 1 if you have the <sys/un.h> header file. */
355#cmakedefine HAVE_SYS_UN_H
356
357/* Define to 1 if you have the <sys/wait.h> header file. */
358#cmakedefine HAVE_SYS_WAIT_H
359
360/* Define to 1 if you have the <tap-windows.h> header file. */
361#undef HAVE_TAP_WINDOWS_H
362
363/* Define to 1 if you have the `time' function. */
364#define HAVE_TIME 1
365
366/* Define to 1 if you have the <time.h> header file. */
367#define HAVE_TIME_H 1
368
369/* Define to 1 if you have the <uapi.h> header file. */
370#undef HAVE_UAPI_H
371
372/* Define to 1 if you have the <unistd.h> header file. */
373#cmakedefine HAVE_UNISTD_H
374
375/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
376#undef HAVE_VALGRIND_MEMCHECK_H
377
01341840
AS
378/* Define to 1 if you have the `vfork' function. */
379#undef HAVE_VFORK
380
381/* Define to 1 if you have the <vfork.h> header file. */
382#undef HAVE_VFORK_H
383
8656b85c
AS
384/* Availability of different mbed TLS features and APIs */
385#cmakedefine01 HAVE_MBEDTLS_PSA_CRYPTO_H
b5faf1b2 386#define HAVE_MBEDTLS_SSL_TLS_PRF 1
8656b85c
AS
387#cmakedefine01 HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB
388#cmakedefine01 HAVE_MBEDTLS_CTR_DRBG_UPDATE_RET
01341840
AS
389
390/* Path to ifconfig tool */
391#define IFCONFIG_PATH "@IFCONFIG_PATH@"
392
393/* Path to iproute tool */
394#define IPROUTE_PATH "@IPROUTE_PATH@"
395
396/* Path to route tool */
397#define ROUTE_PATH "@ROUTE_PATH@"
398
e8881ec6
FL
399/* OpenVPN version in Windows resource format - string */
400#define OPENVPN_VERSION_RESOURCE @OPENVPN_VERSION_RESOURCE@
01341840
AS
401
402/* Name of package */
403#define PACKAGE "openvpn"
404
405/* Define to the address where bug reports for this package should be sent. */
406#undef PACKAGE_BUGREPORT
407
408/* Define to the full name of this package. */
409#define PACKAGE_NAME "OpenVPN"
410
411/* Define to the full name and version of this package. */
412#define PACKAGE_STRING "OpenVPN @OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
413
414/* Define to the version of this package. */
415#define PACKAGE_VERSION "@OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
416
01341840
AS
417/* Path to systemd-ask-password tool */
418#undef SYSTEMD_ASK_PASSWORD_PATH
419
420/* systemd is newer than v216 */
421#define SYSTEMD_NEWER_THAN_216
422
423/* The tap-windows id */
424#define TAP_WIN_COMPONENT_ID "tap0901"
425
426/* The tap-windows version number is required for OpenVPN */
427#define TAP_WIN_MIN_MAJOR 9
428
429/* The tap-windows version number is required for OpenVPN */
430#define TAP_WIN_MIN_MINOR 9
431
432/* Are we running on Mac OS X? */
433#cmakedefine TARGET_DARWIN
434
435/* Are we running on FreeBSD? */
436#cmakedefine TARGET_FREEBSD
437
438/* Are we running on Linux? */
439#cmakedefine TARGET_LINUX
440
efbedf21
AS
441/* Are we running on Solaris/OpenIndiana? */
442#cmakedefine TARGET_SOLARIS
443
01341840
AS
444/* Are we running WIN32? */
445#cmakedefine TARGET_WIN32
446
447#define TARGET_ALIAS "@CMAKE_SYSTEM_NAME@"
448
449/* Enable GNU extensions on systems that have them. */
450#ifndef _GNU_SOURCE
451# define _GNU_SOURCE 1
452#endif
453
454
455#if defined(_WIN32)
456#include <inttypes.h>
457typedef uint32_t in_addr_t;
458typedef uint16_t in_port_t;
459
460#define SIGHUP 1
461#define SIGINT 2
462#define SIGUSR1 10
463#define SIGUSR2 12
464#define SIGTERM 15
465#endif
466
467#if defined(_MSC_VER)
468#include <BaseTsd.h>
469typedef SSIZE_T ssize_t;
470#define strncasecmp strnicmp
471#define strcasecmp _stricmp
472
2fcfb77a
LS
473#define S_IRUSR _S_IREAD
474#define S_IWUSR _S_IWRITE
01341840
AS
475#define R_OK 4
476#define W_OK 2
477#define X_OK 1
478#define F_OK 0
479#endif