]> git.lyx.org Git - lyx.git/blob - development/cmake/configCompiler.h.cmake
Autotools: optimize with -Og when debugging
[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_INT 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 #cmakedefine SIZEOF_LONG_LONG_GREATER_THAN_SIZEOF_LONG 1
46
47 #ifdef SIZEOF_WCHAR_T_IS_2
48 #  define SIZEOF_WCHAR_T 2
49 #else
50 #  ifdef SIZEOF_WCHAR_T_IS_4
51 #    define SIZEOF_WCHAR_T 4
52 #  endif
53 #endif
54
55 #cmakedefine GETTEXT_FOUND 1
56
57 #cmakedefine HAVE_ALLOCA 1
58 #cmakedefine HAVE_SYMBOL_ALLOCA 1
59 #if defined(HAVE_SYMBOL_ALLOCA) && !defined(HAVE_ALLOCA)
60 #define HAVE_ALLOCA
61 #endif
62
63 /* whether hunspell C++ (rather than C) ABI is provided */
64 #cmakedefine HAVE_HUNSPELL_CXXABI 1
65
66 #cmakedefine HAVE_ICONV_CONST 1
67 #ifdef HAVE_ICONV_CONST
68 #define ICONV_CONST const
69 #else
70 #define ICONV_CONST
71 #endif
72
73 #ifdef _MSC_VER
74 #undef HAVE_OPEN  // use _open instead
75 #define pid_t int
76 #define PATH_MAX 512
77 #endif
78
79 #ifdef _WIN32
80 #undef HAVE_MKDIR // use _mkdir instead
81 #endif
82
83 #define BOOST_ALL_NO_LIB 1
84
85 #ifdef _DEBUG
86 #  define ENABLE_ASSERTIONS 1
87 #endif
88
89 #ifndef ENABLE_ASSERTIONS
90 #  define BOOST_DISABLE_ASSERTS 1
91 #endif
92 #define BOOST_ENABLE_ASSERT_HANDLER 1
93
94 //#define BOOST_DISABLE_THREADS 1
95 #define BOOST_NO_WSTRING 1
96
97 #ifdef __CYGWIN__
98 #  define _DEFAULT_SOURCE
99 #  define BOOST_POSIX 1
100 #  define BOOST_POSIX_API 1
101 #  define BOOST_POSIX_PATH 1
102 #endif
103
104 #if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4
105 #  define USE_WCHAR_T
106 #endif
107
108 #if defined(MAKE_INTL_LIB) && defined(_MSC_VER)
109 #define __attribute__(x)
110 #define inline
111 #define uintmax_t UINT_MAX
112 #endif
113
114 #ifdef _MSC_VER
115 #ifdef HAVE_CHMOD
116 #undef HAVE_CHMOD
117 #endif
118 #endif
119
120 #ifdef HAVE_CHMOD
121 #define HAVE_MODE_T
122 #endif
123
124 #endif