]> git.lyx.org Git - lyx.git/blob - development/cmake/config.h.cmake
Merge branch 'master' of git.lyx.org:lyx
[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 ASPELL_FOUND 1
61 #ifdef ASPELL_FOUND
62 #define USE_ASPELL 1
63 #endif
64
65 #cmakedefine AIKSAURUSLIB_FOUND 1
66 #ifdef AIKSAURUSLIB_FOUND
67 #define HAVE_LIBAIKSAURUS 1
68 #define AIKSAURUS_H_LOCATION "${AIKSAURUSLIB_H}"
69 #endif
70
71 #cmakedefine ENCHANT_FOUND 1
72 #ifdef ENCHANT_FOUND
73 #define USE_ENCHANT 1
74 #endif
75
76 #cmakedefine HUNSPELL_FOUND 1
77 #ifdef HUNSPELL_FOUND
78 #define USE_HUNSPELL 1
79 #endif
80
81 #cmakedefine LYX_NLS 1
82 #ifdef LYX_NLS
83 #define ENABLE_NLS 1
84 // These are needed when building included gettext (taken from autoconf macro)
85 #cmakedefine LYX_EXTERNAL_LIBINTL 1
86 #if !defined(LYX_EXTERNAL_LIBINTL)
87 // this only makes sense when LYX_EXTERNAL_LIBINTL is OFF.
88 #define __libc_lock_t                   gl_lock_t
89 #define __libc_lock_define              gl_lock_define
90 #define __libc_lock_define_initialized  gl_lock_define_initialized
91 #define __libc_lock_init                gl_lock_init
92 #define __libc_lock_lock                gl_lock_lock
93 #define __libc_lock_unlock              gl_lock_unlock
94 #define __libc_lock_recursive_t                   gl_recursive_lock_t
95 #define __libc_lock_define_recursive              gl_recursive_lock_define
96 #define __libc_lock_define_initialized_recursive  gl_recursive_lock_define_initialized
97 #define __libc_lock_init_recursive                gl_recursive_lock_init
98 #define __libc_lock_lock_recursive                gl_recursive_lock_lock
99 #define __libc_lock_unlock_recursive              gl_recursive_lock_unlock
100 #define glthread_in_use  libintl_thread_in_use
101 #define glthread_lock_init     libintl_lock_init
102 #define glthread_lock_lock     libintl_lock_lock
103 #define glthread_lock_unlock   libintl_lock_unlock
104 #define glthread_lock_destroy  libintl_lock_destroy
105 #define glthread_rwlock_init     libintl_rwlock_init
106 #define glthread_rwlock_rdlock   libintl_rwlock_rdlock
107 #define glthread_rwlock_wrlock   libintl_rwlock_wrlock
108 #define glthread_rwlock_unlock   libintl_rwlock_unlock
109 #define glthread_rwlock_destroy  libintl_rwlock_destroy
110 #define glthread_recursive_lock_init     libintl_recursive_lock_init
111 #define glthread_recursive_lock_lock     libintl_recursive_lock_lock
112 #define glthread_recursive_lock_unlock   libintl_recursive_lock_unlock
113 #define glthread_recursive_lock_destroy  libintl_recursive_lock_destroy
114 #define glthread_once                 libintl_once
115 #define glthread_once_call            libintl_once_call
116 #define glthread_once_singlethreaded  libintl_once_singlethreaded
117 #define hash_string                     libintl_hash_string
118 #endif /* LYX_EXTERNAL_LIBINTL */
119 #endif
120
121
122 #endif // config.h guard
123
124
125
126 // Unguarded cleanup of global namespace:
127
128 #ifdef ColorMode
129 #undef ColorMode
130 #endif
131
132 #ifdef FocusOut
133 #undef FocusOut
134 #endif
135
136 #ifdef FocusIn
137 #undef FocusIn
138 #endif
139
140 #ifdef KeyRelease
141 #undef KeyRelease
142 #endif
143
144 #ifdef CursorShape
145 #undef CursorShape
146 #endif
147
148 #ifdef IGNORE
149 #undef IGNORE
150 #endif
151
152 #ifdef GrayScale
153 #undef GrayScale
154 #endif
155
156 #ifdef Status
157 #undef Status
158 #endif
159
160 #ifdef IN
161 #undef IN
162 #endif
163
164 #ifdef KeyPress
165 #undef KeyPress
166 #endif
167