comparison cmake/internal/sysconfig.hpp.in @ 95:1125d90b3b44

Misc: switch to .hpp, #477
author David Demelier <markand@malikania.fr>
date Wed, 20 Apr 2016 19:45:00 +0200
parents
children 113d909fdfe1
comparison
equal deleted inserted replaced
94:339808b0c007 95:1125d90b3b44
1 /*
2 * sysconfig.h -- configuration for irccd
3 *
4 * Copyright (c) 2013-2016 David Demelier <markand@malikania.fr>
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 #ifndef IRCCD_SYSCONFIG_H
20 #define IRCCD_SYSCONFIG_H
21
22 /*
23 * Fix annoying "Please include winsock2.h before windows.h"
24 */
25 #if defined(_WIN32)
26 # include <winsock2.h>
27 # include <windows.h>
28 #endif
29
30 /*
31 * Auto generated from CMake.
32 * ------------------------------------------------------------------
33 */
34
35 #define PREFIX "@CMAKE_INSTALL_PREFIX@"
36
37 #define IRCCD_VERSION_MAJOR @IRCCD_VERSION_MAJOR@
38 #define IRCCD_VERSION_MINOR @IRCCD_VERSION_MINOR@
39 #define IRCCD_VERSION_PATCH @IRCCD_VERSION_PATCH@
40
41 #cmakedefine IRCCD_RELOCATABLE
42
43 /*
44 * System identification.
45 * ------------------------------------------------------------------
46 */
47
48 #cmakedefine IRCCD_SYSTEM_WINDOWS
49 #cmakedefine IRCCD_SYSTEM_MAC
50 #cmakedefine IRCCD_SYSTEM_FREEBSD
51 #cmakedefine IRCCD_SYSTEM_NETBSD
52 #cmakedefine IRCCD_SYSTEM_OPENBSD
53 #cmakedefine IRCCD_SYSTEM_LINUX
54 #cmakedefine IRCCD_SYSTEM_UNKNOWN
55
56 /*
57 * User definable options.
58 * ------------------------------------------------------------------
59 */
60
61 #define WITH_BINDIR "@WITH_BINDIR@"
62 #define WITH_DATADIR "@WITH_DATADIR@"
63 #define WITH_CONFDIR "@WITH_CONFDIR@"
64 #define WITH_PLUGINDIR "@WITH_PLUGINDIR@"
65 #define WITH_CACHEDIR "@WITH_CACHEDIR@"
66
67 #cmakedefine WITH_JS
68 #cmakedefine WITH_SSL
69
70 /*
71 * Platform checks.
72 * ------------------------------------------------------------------
73 */
74
75 #cmakedefine HAVE_ACCESS
76 #cmakedefine HAVE_DAEMON
77 #cmakedefine HAVE_GETPID
78 #cmakedefine HAVE_POPEN
79 #cmakedefine HAVE_SETGID
80 #cmakedefine HAVE_SETPROGNAME
81 #cmakedefine HAVE_SETUID
82 #cmakedefine HAVE_STD_PUT_TIME
83 #cmakedefine HAVE_STAT
84 #cmakedefine HAVE_STAT_ST_ATIME
85 #cmakedefine HAVE_STAT_ST_BLKSIZE
86 #cmakedefine HAVE_STAT_ST_BLOCKS
87 #cmakedefine HAVE_STAT_ST_CTIME
88 #cmakedefine HAVE_STAT_ST_DEV
89 #cmakedefine HAVE_STAT_ST_GID
90 #cmakedefine HAVE_STAT_ST_INO
91 #cmakedefine HAVE_STAT_ST_MODE
92 #cmakedefine HAVE_STAT_ST_MTIME
93 #cmakedefine HAVE_STAT_ST_NLINK
94 #cmakedefine HAVE_STAT_ST_RDEV
95 #cmakedefine HAVE_STAT_ST_SIZE
96 #cmakedefine HAVE_STAT_ST_UID
97 #cmakedefine HAVE_SYSLOG
98
99 #endif // !IRCCD_SYSCONFIG_H