]> git.lyx.org Git - lyx.git/blob - development/cmake/config.h.cmake
qt5: Fix use of zlib using config.h
[lyx.git] / development / cmake / config.h.cmake
1 /*
2  * \file config.h
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * This is the compilation configuration file for LyX.
7  * It was generated by cmake.
8  * You might want to change some of the defaults if something goes wrong
9  * during the compilation.
10  */
11
12 #ifndef _CONFIG_H
13 #define _CONFIG_H
14
15 // obligatory flags
16 #define QT_NO_STL 1
17 #define QT_NO_KEYWORDS 1
18 #define HAVE_ICONV 1
19
20 #include "configCompiler.h"
21
22 #ifdef LYX_ENABLE_PCH
23 #include "pcheaders.h"
24 #endif
25
26
27 #cmakedefine LYX_DEVEL_VERSION 1
28 #if defined(LYX_DEVEL_VERSION)
29         #define DEVEL_VERSION 1
30 #else
31         #undef DEVEL_VERSION
32 #endif
33 #cmakedefine PACKAGE "${PACKAGE}"
34 #cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}"
35 #define PACKAGE_STRING "LyX ${PACKAGE_VERSION}"
36 #cmakedefine PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}"
37 #cmakedefine VERSION_INFO "${VERSION_INFO}"
38 #cmakedefine LYX_DIR_VER "${LYX_DIR_VER}"
39 #cmakedefine LYX_USERDIR_VER "${LYX_USERDIR_VER}"
40 #define LYX_MAJOR_VERSION ${LYX_MAJOR_VERSION}
41 #define LYX_MINOR_VERSION ${LYX_MINOR_VERSION}
42
43 #define PROGRAM_SUFFIX "${PROGRAM_SUFFIX}"
44 #define LYX_ABS_INSTALLED_DATADIR "${LYX_ABS_INSTALLED_DATADIR}"
45 #define LYX_ABS_INSTALLED_LOCALEDIR "${LYX_ABS_INSTALLED_LOCALEDIR}"
46 #define LYX_ABS_TOP_SRCDIR "${TOP_SRC_DIR}"
47
48 #cmakedefine USE_POSIX_PACKAGING 1
49 #cmakedefine USE_WINDOWS_PACKAGING 1
50 #cmakedefine USE_MACOSX_PACKAGING 1
51 #cmakedefine PATH_MAX ${PATH_MAX}
52
53 #cmakedefine WORDS_BIGENDIAN 1
54
55 #cmakedefine LYX_MERGE_FILES 1
56
57 #cmakedefine LYX_USE_TR1 1
58 #cmakedefine LYX_USE_TR1_REGEX 1
59
60 #cmakedefine Z_PREFIX 1
61
62 #cmakedefine ASPELL_FOUND 1
63 #ifdef ASPELL_FOUND
64 #define USE_ASPELL 1
65 #endif
66
67 #cmakedefine AIKSAURUSLIB_FOUND 1
68 #ifdef AIKSAURUSLIB_FOUND
69 #define HAVE_LIBAIKSAURUS 1
70 #define AIKSAURUS_H_LOCATION "${AIKSAURUSLIB_H}"
71 #endif
72
73 #cmakedefine ENCHANT_FOUND 1
74 #ifdef ENCHANT_FOUND
75 #define USE_ENCHANT 1
76 #endif
77
78 #cmakedefine HUNSPELL_FOUND 1
79 #ifdef HUNSPELL_FOUND
80 #define USE_HUNSPELL 1
81 #endif
82
83 #cmakedefine LYX_NLS 1
84 #ifdef LYX_NLS
85 #define ENABLE_NLS 1
86 // These are needed when building included gettext (taken from autoconf macro)
87 #cmakedefine LYX_EXTERNAL_LIBINTL 1
88 #if !defined(LYX_EXTERNAL_LIBINTL)
89 // this only makes sense when LYX_EXTERNAL_LIBINTL is OFF.
90 #define __libc_lock_t                   gl_lock_t
91 #define __libc_lock_define              gl_lock_define
92 #define __libc_lock_define_initialized  gl_lock_define_initialized
93 #define __libc_lock_init                gl_lock_init
94 #define __libc_lock_lock                gl_lock_lock
95 #define __libc_lock_unlock              gl_lock_unlock
96 #define __libc_lock_recursive_t                   gl_recursive_lock_t
97 #define __libc_lock_define_recursive              gl_recursive_lock_define
98 #define __libc_lock_define_initialized_recursive  gl_recursive_lock_define_initialized
99 #define __libc_lock_init_recursive                gl_recursive_lock_init
100 #define __libc_lock_lock_recursive                gl_recursive_lock_lock
101 #define __libc_lock_unlock_recursive              gl_recursive_lock_unlock
102 #define glthread_in_use  libintl_thread_in_use
103 #define glthread_lock_init     libintl_lock_init
104 #define glthread_lock_lock     libintl_lock_lock
105 #define glthread_lock_unlock   libintl_lock_unlock
106 #define glthread_lock_destroy  libintl_lock_destroy
107 #define glthread_rwlock_init     libintl_rwlock_init
108 #define glthread_rwlock_rdlock   libintl_rwlock_rdlock
109 #define glthread_rwlock_wrlock   libintl_rwlock_wrlock
110 #define glthread_rwlock_unlock   libintl_rwlock_unlock
111 #define glthread_rwlock_destroy  libintl_rwlock_destroy
112 #define glthread_recursive_lock_init     libintl_recursive_lock_init
113 #define glthread_recursive_lock_lock     libintl_recursive_lock_lock
114 #define glthread_recursive_lock_unlock   libintl_recursive_lock_unlock
115 #define glthread_recursive_lock_destroy  libintl_recursive_lock_destroy
116 #define glthread_once                 libintl_once
117 #define glthread_once_call            libintl_once_call
118 #define glthread_once_singlethreaded  libintl_once_singlethreaded
119 #define hash_string                     libintl_hash_string
120 #endif /* LYX_EXTERNAL_LIBINTL */
121 #endif
122
123
124 #endif // config.h guard
125
126
127
128 // Unguarded cleanup of global namespace:
129
130 #ifdef ColorMode
131 #undef ColorMode
132 #endif
133
134 #ifdef FocusOut
135 #undef FocusOut
136 #endif
137
138 #ifdef FocusIn
139 #undef FocusIn
140 #endif
141
142 #ifdef KeyRelease
143 #undef KeyRelease
144 #endif
145
146 #ifdef CursorShape
147 #undef CursorShape
148 #endif
149
150 #ifdef IGNORE
151 #undef IGNORE
152 #endif
153
154 #ifdef GrayScale
155 #undef GrayScale
156 #endif
157
158 #ifdef Status
159 #undef Status
160 #endif
161
162 #ifdef IN
163 #undef IN
164 #endif
165
166 #ifdef KeyPress
167 #undef KeyPress
168 #endif
169