]> git.lyx.org Git - lyx.git/blob - development/cmake/configCompiler.h.cmake
Fix empty width support for Box inset
[lyx.git] / development / cmake / configCompiler.h.cmake
1 /*
2  * \file configCompiler.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_COMPILER_H
13 #define _CONFIG_COMPILER_H
14
15
16 #cmakedefine HAVE_ISTREAM 1
17 #cmakedefine HAVE_OSTREAM 1
18 #cmakedefine HAVE_IOS 1
19 #cmakedefine HAVE_LOCALE 1
20
21 #include "configIncludes.h"
22
23 #include "configFunctions.h"
24
25 #cmakedefine HAVE_STD_COUNT 1
26 #cmakedefine HAVE_ASPRINTF 1
27 #cmakedefine HAVE_WPRINTF 1
28 #cmakedefine HAVE_SNPRINTF 1
29 #cmakedefine HAVE_POSIX_PRINTF 1
30 #cmakedefine HAVE_INTMAX_T 1
31 #cmakedefine HAVE_INTTYPES_H_WITH_UINTMAX 1
32 #cmakedefine CXX_GLOBAL_CSTD 1
33 #cmakedefine HAVE_WPRINTF 1
34 #cmakedefine HAVE_LONG_DOUBLE 1
35 #cmakedefine HAVE_LONG_LONG 1
36 #cmakedefine HAVE_WCHAR_T 1
37 #cmakedefine HAVE_WINT_T 1
38 #cmakedefine HAVE_STDINT_H_WITH_UINTMAX 1
39 #cmakedefine HAVE_LC_MESSAGES 1    
40 #cmakedefine HAVE_SSTREAM 1
41 #cmakedefine HAVE_ARGZ_H 1
42 #cmakedefine HAVE_MAGIC_H 1
43 #cmakedefine SIZEOF_WCHAR_T_IS_2 1
44 #cmakedefine SIZEOF_WCHAR_T_IS_4 1
45
46 #ifdef SIZEOF_WCHAR_T_IS_2
47 #  define SIZEOF_WCHAR_T 2
48 #else
49 #  ifdef SIZEOF_WCHAR_T_IS_4
50 #    define SIZEOF_WCHAR_T 4
51 #  endif
52 #endif
53
54 #cmakedefine GETTEXT_FOUND 1
55
56 #cmakedefine HAVE_ALLOCA 1
57 #cmakedefine HAVE_SYMBOL_ALLOCA 1
58 #if defined(HAVE_SYMBOL_ALLOCA) && !defined(HAVE_ALLOCA)
59 #define HAVE_ALLOCA
60 #endif
61
62 #cmakedefine HAVE_ICONV_CONST 1
63 #ifdef HAVE_ICONV_CONST
64 #define ICONV_CONST const
65 #else
66 #define ICONV_CONST
67 #endif
68
69 #ifdef _MSC_VER
70 #undef HAVE_OPEN  // use _open instead
71 #define pid_t int
72 #define PATH_MAX 512
73 #endif
74
75 #ifdef _WIN32 
76 #undef HAVE_MKDIR // use _mkdir instead
77 #endif
78
79 #define BOOST_ALL_NO_LIB 1
80
81 #if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)
82 #  define USE_BOOST_FORMAT 1
83 #else
84 #  define USE_BOOST_FORMAT 0
85 #endif
86
87 #ifdef _DEBUG
88 #  define ENABLE_ASSERTIONS 1
89 #endif
90
91 #ifndef ENABLE_ASSERTIONS
92 #  define BOOST_DISABLE_ASSERTS 1
93 #endif
94 #define BOOST_ENABLE_ASSERT_HANDLER 1
95
96 //#define BOOST_DISABLE_THREADS 1
97 #define BOOST_NO_WSTRING 1
98
99 #ifdef __CYGWIN__
100 #  define BOOST_POSIX 1
101 #  define BOOST_POSIX_API 1
102 #  define BOOST_POSIX_PATH 1
103 #endif
104
105 /*
106  * the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t
107  * support compiled in:
108  * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9
109  * And we are not interested at all what libc
110  * does: What we need is a 32bit wide wchar_t, and a libstdc++ that
111  * has the needed wchar_t support and uses UCS4. Whether it
112  * implements this with the help of libc, or whether it has own code
113  * does not matter for us, because we don't use libc directly (Georg)
114 */
115 #if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
116 #  define USE_WCHAR_T
117 #endif
118
119 #if defined(MAKE_INTL_LIB) && defined(_MSC_VER)
120 #define __attribute__(x)
121 #define inline
122 #define uintmax_t UINT_MAX
123 #endif
124
125 #ifdef _MSC_VER
126 #ifdef HAVE_CHMOD
127 #undef HAVE_CHMOD
128 #endif
129 #endif
130
131 #ifdef HAVE_CHMOD
132 #define HAVE_MODE_T
133 #endif
134
135 #cmakedefine _GLIBCXX_DEBUG 1
136 #cmakedefine _GLIBCXX_DEBUG_PEDANTIC 1
137
138 #endif