MySQL  8.0.12
Source Code Documentation
config.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20  The lines above are intentionally left blank
21 */
22 
23 #ifndef MY_CONFIG_H
24 #define MY_CONFIG_H
25 
26 /*
27  * From configure.cmake, in order of appearance
28  */
29 /* #undef HAVE_LLVM_LIBCPP */
30 
31 /* Libraries */
32 #define HAVE_LIBM 1
33 /* #undef HAVE_LIBNSL */
34 #define HAVE_LIBCRYPT 1
35 /* #undef HAVE_LIBSOCKET */
36 #define HAVE_LIBDL 1
37 #define HAVE_LIBRT 1
38 /* #undef HAVE_LIBWRAP */
39 /* #undef HAVE_LIBWRAP_PROTOTYPES */
40 
41 /* Header files */
42 #define HAVE_ALLOCA_H 1
43 #define HAVE_ARPA_INET_H 1
44 #define HAVE_DLFCN_H 1
45 #define HAVE_EXECINFO_H 1
46 #define HAVE_FPU_CONTROL_H 1
47 #define HAVE_GRP_H 1
48 /* #undef HAVE_IEEEFP_H */
49 #define HAVE_LANGINFO_H 1
50 /* #undef HAVE_LSAN_INTERFACE_H */
51 #define HAVE_MALLOC_H 1
52 #define HAVE_NETINET_IN_H 1
53 #define HAVE_POLL_H 1
54 #define HAVE_PWD_H 1
55 #define HAVE_STRINGS_H 1
56 #define HAVE_SYS_CDEFS_H 1
57 #define HAVE_SYS_IOCTL_H 1
58 #define HAVE_SYS_MMAN_H 1
59 #define HAVE_SYS_PRCTL_H 1
60 #define HAVE_SYS_RESOURCE_H 1
61 #define HAVE_SYS_SELECT_H 1
62 #define HAVE_SYS_SOCKET_H 1
63 #define HAVE_TERM_H 1
64 #define HAVE_TERMIOS_H 1
65 #define HAVE_TERMIO_H 1
66 #define HAVE_UNISTD_H 1
67 #define HAVE_SYS_WAIT_H 1
68 #define HAVE_SYS_PARAM_H 1
69 #define HAVE_FNMATCH_H 1
70 #define HAVE_SYS_UN_H 1
71 /* #undef HAVE_VIS_H */
72 #define HAVE_SASL_SASL_H 1
73 
74 /* Libevent */
75 /* #undef HAVE_DEVPOLL */
76 /* #undef HAVE_SYS_DEVPOLL_H */
77 #define HAVE_SYS_EPOLL_H 1
78 #define HAVE_TAILQFOREACH 1
79 
80 /* Functions */
81 /* #undef HAVE_ALIGNED_MALLOC */
82 #define HAVE_BACKTRACE 1
83 /* #undef HAVE_PRINTSTACK */
84 #define HAVE_INDEX 1
85 #define HAVE_CHOWN 1
86 #define HAVE_CUSERID 1
87 /* #undef HAVE_DIRECTIO */
88 #define HAVE_FTRUNCATE 1
89 #define HAVE_FCHMOD 1
90 #define HAVE_FCNTL 1
91 #define HAVE_FDATASYNC 1
92 #define HAVE_DECL_FDATASYNC 1
93 #define HAVE_FEDISABLEEXCEPT 1
94 #define HAVE_FSEEKO 1
95 #define HAVE_FSYNC 1
96 /* #undef HAVE_GETHRTIME */
97 #define HAVE_GETNAMEINFO 1
98 #define HAVE_GETPASS 1
99 /* #undef HAVE_GETPASSPHRASE */
100 #define HAVE_GETPWNAM 1
101 #define HAVE_GETPWUID 1
102 #define HAVE_GETRLIMIT 1
103 #define HAVE_GETRUSAGE 1
104 #define HAVE_INITGROUPS 1
105 /* #undef HAVE_ISSETUGID */
106 #define HAVE_GETUID 1
107 #define HAVE_GETEUID 1
108 #define HAVE_GETGID 1
109 #define HAVE_GETEGID 1
110 /* #undef HAVE_LSAN_DO_RECOVERABLE_LEAK_CHECK */
111 #define HAVE_MADVISE 1
112 #define HAVE_MALLOC_INFO 1
113 #define HAVE_MEMRCHR 1
114 #define HAVE_MLOCK 1
115 #define HAVE_MLOCKALL 1
116 #define HAVE_MMAP64 1
117 #define HAVE_POLL 1
118 #define HAVE_POSIX_FALLOCATE 1
119 #define HAVE_POSIX_MEMALIGN 1
120 #define HAVE_PREAD 1
121 #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
122 #define HAVE_PTHREAD_SIGMASK 1
123 /* #undef HAVE_SETFD */
124 #define HAVE_SIGACTION 1
125 #define HAVE_SLEEP 1
126 #define HAVE_STPCPY 1
127 #define HAVE_STPNCPY 1
128 /* #undef HAVE_STRLCPY */
129 /* #undef HAVE_STRLCAT */
130 #define HAVE_STRSIGNAL 1
131 /* #undef HAVE_FGETLN */
132 #define HAVE_STRSEP 1
133 /* #undef HAVE_TELL */
134 #define HAVE_VASPRINTF 1
135 #define HAVE_MEMALIGN 1
136 #define HAVE_NL_LANGINFO 1
137 /* #undef HAVE_HTONLL */
138 #define HAVE_EPOLL 1
139 /* #undef HAVE_EVENT_PORTS */
140 #define HAVE_INET_NTOP 1
141 /* #undef HAVE_WORKING_KQUEUE */
142 #define HAVE_TIMERADD 1
143 #define HAVE_TIMERCLEAR 1
144 #define HAVE_TIMERCMP 1
145 #define HAVE_TIMERISSET 1
146 
147 /* WL2373 */
148 #define HAVE_SYS_TIME_H 1
149 #define HAVE_SYS_TIMES_H 1
150 #define HAVE_TIMES 1
151 #define HAVE_GETTIMEOFDAY 1
152 
153 /* Symbols */
154 #define HAVE_LRAND48 1
155 #define GWINSZ_IN_SYS_IOCTL 1
156 #define FIONREAD_IN_SYS_IOCTL 1
157 /* #undef FIONREAD_IN_SYS_FILIO */
158 
159 #define HAVE_ISINF 1
160 
161 /* #undef HAVE_KQUEUE */
162 /* #undef HAVE_KQUEUE_TIMERS */
163 #define HAVE_POSIX_TIMERS 1
164 
165 /* Endianess */
166 /* #undef WORDS_BIGENDIAN */
167 
168 /* Type sizes */
169 #define SIZEOF_VOIDP 8
170 #define SIZEOF_CHARP 8
171 #define SIZEOF_LONG 8
172 #define SIZEOF_SHORT 2
173 #define SIZEOF_INT 4
174 #define SIZEOF_LONG_LONG 8
175 #define SIZEOF_OFF_T 8
176 #define SIZEOF_TIME_T 8
177 #define HAVE_ULONG 1
178 #define HAVE_U_INT32_T 1
179 
180 /* Support for tagging symbols with __attribute__((visibility("hidden"))) */
181 #define HAVE_VISIBILITY_HIDDEN 1
182 
183 /* Code tests*/
184 #define HAVE_CLOCK_GETTIME 1
185 #define HAVE_CLOCK_REALTIME 1
186 #define DNS_USE_CPU_CLOCK_FOR_ID 1
187 #define STACK_DIRECTION -1
188 #define TIME_WITH_SYS_TIME 1
189 /* #undef NO_FCNTL_NONBLOCK */
190 #define HAVE_PAUSE_INSTRUCTION 1
191 /* #undef HAVE_FAKE_PAUSE_INSTRUCTION */
192 /* #undef HAVE_HMT_PRIORITY_INSTRUCTION */
193 #define HAVE_ABI_CXA_DEMANGLE 1
194 #define HAVE_BUILTIN_UNREACHABLE 1
195 #define HAVE_BUILTIN_EXPECT 1
196 #define HAVE_BUILTIN_STPCPY 1
197 #define HAVE_GCC_ATOMIC_BUILTINS 1
198 #define HAVE_GCC_SYNC_BUILTINS 1
199 /* #undef HAVE_VALGRIND */
200 #define HAVE_SYS_GETTID 1
201 /* #undef HAVE_PTHREAD_GETTHREADID_NP */
202 /* #undef HAVE_PTHREAD_THREADID_NP */
203 #define HAVE_INTEGER_PTHREAD_SELF 1
204 #define HAVE_PTHREAD_SETNAME_NP 1
205 /*
206  This macro defines whether the compiler in use needs a 'typename' keyword
207  to access the types defined inside a class template, such types are called
208  dependent types. Some compilers require it, some others forbid it, and some
209  others may work with or without it. For example, GCC requires the 'typename'
210  keyword whenever needing to access a type inside a template, but msvc
211  forbids it.
212  */
213 /* #undef HAVE_IMPLICIT_DEPENDENT_NAME_TYPING */
214 
215 /* IPV6 */
216 /* #undef HAVE_NETINET_IN6_H */
217 /* #undef HAVE_STRUCT_IN6_ADDR */
218 
219 /*
220  * Platform specific CMake files
221  */
222 #define MACHINE_TYPE "x86_64"
223 /* #undef LINUX_ALPINE */
224 #define HAVE_LINUX_LARGE_PAGES 1
225 /* #undef HAVE_SOLARIS_LARGE_PAGES */
226 /* #undef HAVE_SOLARIS_ATOMIC */
227 #define SYSTEM_TYPE "Linux"
228 /* This should mean case insensitive file system */
229 /* #undef FN_NO_CASE_SENSE */
230 
231 /*
232  * From main CMakeLists.txt
233  */
234 #define MAX_INDEXES 64U
235 /* #undef WITH_INNODB_MEMCACHED */
236 /* #undef ENABLE_MEMCACHED_SASL */
237 /* #undef ENABLE_MEMCACHED_SASL_PWDB */
238 #define ENABLED_PROFILING 1
239 /* #undef HAVE_ASAN */
240 /* #undef HAVE_UBSAN */
241 /* #undef ENABLED_LOCAL_INFILE */
242 #define DEFAULT_MYSQL_HOME "/usr/local/mysql"
243 #define SHAREDIR "/usr/local/mysql/share"
244 #define DEFAULT_BASEDIR "/usr/local/mysql"
245 #define MYSQL_DATADIR "/usr/local/mysql/data"
246 #define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring"
247 #define DEFAULT_CHARSET_HOME "/usr/local/mysql"
248 #define PLUGINDIR "/usr/local/mysql/lib/plugin"
249 #define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc"
250 #define DEFAULT_TMPDIR P_tmpdir
251 #define INSTALL_SBINDIR "/usr/local/mysql/bin"
252 #define INSTALL_BINDIR "/usr/local/mysql/bin"
253 #define INSTALL_MYSQLSHAREDIR "/usr/local/mysql/share"
254 #define INSTALL_SHAREDIR "/usr/local/mysql/share"
255 #define INSTALL_PLUGINDIR "/usr/local/mysql/lib/plugin"
256 #define INSTALL_INCLUDEDIR "/usr/local/mysql/include"
257 #define INSTALL_MYSQLDATADIR "/usr/local/mysql/data"
258 #define INSTALL_MYSQLKEYRINGDIR "/usr/local/mysql/keyring"
259 #define INSTALL_PLUGINTESTDIR "/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/x//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/audit_log//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/authentication_ldap//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/clone//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/cross_plugin_test//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/firewall//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/keyring_aws//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/keyring_encrypted_file//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/keyring_okv//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/openssl_udf//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/pam-authentication-plugin//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/thread_pool//tests;/export/home/pb2/build/sb_0-29394547-1530205024.52/source/plugin/windows-authentication-plugin//tests"
260 #define INSTALL_INFODIR "/usr/local/mysql/docs"
261 #define INSTALL_MYSQLTESTDIR "/usr/local/mysql/mysql-test"
262 #define INSTALL_DOCREADMEDIR "/usr/local/mysql/."
263 #define INSTALL_DOCDIR "/usr/local/mysql/docs"
264 #define INSTALL_MANDIR "/usr/local/mysql/man"
265 #define INSTALL_SUPPORTFILESDIR "/usr/local/mysql/support-files"
266 #define INSTALL_LIBDIR "/usr/local/mysql/lib"
267 
268 /*
269  * Readline
270  */
271 #define HAVE_MBSTATE_T
272 #define HAVE_LANGINFO_CODESET
273 #define HAVE_WCSDUP
274 #define HAVE_WCHAR_T 1
275 #define HAVE_WINT_T 1
276 #define HAVE_CURSES_H 1
277 /* #undef HAVE_NCURSES_H */
278 #define USE_LIBEDIT_INTERFACE 1
279 #define HAVE_HIST_ENTRY 1
280 /* #undef USE_NEW_EDITLINE_INTERFACE */
281 
282 /*
283  * Libedit
284  */
285 #define HAVE_DECL_TGOTO 1
286 
287 /*
288  * Character sets
289  */
290 #define MYSQL_DEFAULT_CHARSET_NAME "utf8mb4"
291 #define MYSQL_DEFAULT_COLLATION_NAME "utf8mb4_0900_ai_ci"
292 
293 /*
294  * Performance schema
295  */
296 #define WITH_PERFSCHEMA_STORAGE_ENGINE 1
297 /* #undef DISABLE_PSI_THREAD */
298 /* #undef DISABLE_PSI_MUTEX */
299 /* #undef DISABLE_PSI_RWLOCK */
300 /* #undef DISABLE_PSI_COND */
301 /* #undef DISABLE_PSI_FILE */
302 /* #undef DISABLE_PSI_TABLE */
303 /* #undef DISABLE_PSI_SOCKET */
304 /* #undef DISABLE_PSI_STAGE */
305 /* #undef DISABLE_PSI_STATEMENT */
306 /* #undef DISABLE_PSI_SP */
307 /* #undef DISABLE_PSI_PS */
308 /* #undef DISABLE_PSI_IDLE */
309 /* #undef DISABLE_PSI_ERROR */
310 /* #undef DISABLE_PSI_STATEMENT_DIGEST */
311 /* #undef DISABLE_PSI_METADATA */
312 /* #undef DISABLE_PSI_MEMORY */
313 /* #undef DISABLE_PSI_TRANSACTION */
314 
315 /*
316  * MySQL version
317  */
318 #define MYSQL_VERSION_MAJOR 8
319 #define MYSQL_VERSION_MINOR 0
320 #define MYSQL_VERSION_PATCH 12
321 #define MYSQL_VERSION_EXTRA ""
322 #define PACKAGE "mysql"
323 #define PACKAGE_BUGREPORT ""
324 #define PACKAGE_NAME "MySQL Server"
325 #define PACKAGE_STRING "MySQL Server 8.0.12"
326 #define PACKAGE_TARNAME "mysql"
327 #define PACKAGE_VERSION "8.0.12"
328 #define VERSION "8.0.12"
329 #define PROTOCOL_VERSION 10
330 
331 /*
332  * CPU info
333  */
334 #define CPU_LEVEL1_DCACHE_LINESIZE 64
335 
336 
337 /*
338  * NDB
339  */
340 /* #undef WITH_NDBCLUSTER_STORAGE_ENGINE */
341 /* #undef HAVE_PTHREAD_SETSCHEDPARAM */
342 
343 /*
344  * Other
345  */
346 /* #undef EXTRA_DEBUG */
347 
348 /*
349  * Hardcoded values needed by libevent/NDB/memcached
350  */
351 #define HAVE_FCNTL_H 1
352 #define HAVE_GETADDRINFO 1
353 #define HAVE_INTTYPES_H 1
354 /* libevent's select.c is not Windows compatible */
355 #ifndef _WIN32
356 #define HAVE_SELECT 1
357 #endif
358 #define HAVE_SIGNAL_H 1
359 #define HAVE_STDARG_H 1
360 #define HAVE_STDINT_H 1
361 #define HAVE_STDLIB_H 1
362 #define HAVE_STRDUP 1
363 #define HAVE_STRTOK_R 1
364 #define HAVE_STRTOLL 1
365 #define HAVE_SYS_STAT_H 1
366 #define HAVE_SYS_TYPES_H 1
367 #define SIZEOF_CHAR 1
368 
369 /*
370  * Needed by libevent
371  */
372 #define HAVE_SOCKLEN_T 1
373 
374 /* For --secure-file-priv */
375 #define DEFAULT_SECURE_FILE_PRIV_DIR "NULL"
376 #define HAVE_LIBNUMA 1
377 
378 /* For default value of --early_plugin_load */
379 /* #undef DEFAULT_EARLY_PLUGIN_LOAD */
380 
381 #define SO_EXT ".so"
382 
383 #endif