MySQL 8.0.39
Source Code Documentation
my_config.h
Go to the documentation of this file.
1/* Copyright (c) 2009, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MY_CONFIG_H
25#define MY_CONFIG_H
26
27/*
28 * From configure.cmake, in order of appearance
29 */
30
31/* Libraries */
32#define HAVE_LIBM 1
33/* #undef HAVE_LIBNSL */
34/* #undef HAVE_LIBSOCKET */
35#define HAVE_LIBDL 1
36#define HAVE_LIBRT 1
37/* #undef HAVE_LIBWRAP */
38/* #undef HAVE_LIBWRAP_PROTOTYPES */
39
40/* Header files */
41#define HAVE_ALLOCA_H 1
42#define HAVE_ARPA_INET_H 1
43#define HAVE_DLFCN_H 1
44#define HAVE_EXECINFO_H 1
45#define HAVE_FPU_CONTROL_H 1
46#define HAVE_GRP_H 1
47#define HAVE_LANGINFO_H 1
48#define HAVE_MALLOC_H 1
49#define HAVE_NETINET_IN_H 1
50#define HAVE_POLL_H 1
51#define HAVE_PWD_H 1
52#define HAVE_STRINGS_H 1
53#define HAVE_SYS_CDEFS_H 1
54#define HAVE_SYS_IOCTL_H 1
55#define HAVE_SYS_MMAN_H 1
56#define HAVE_SYS_PRCTL_H 1
57#define HAVE_SYS_RESOURCE_H 1
58#define HAVE_SYS_SELECT_H 1
59#define HAVE_SYS_SOCKET_H 1
60#define HAVE_TERM_H 1
61#define HAVE_TERMIOS_H 1
62#define HAVE_TERMIO_H 1
63#define HAVE_UNISTD_H 1
64#define HAVE_SYS_WAIT_H 1
65#define HAVE_SYS_PARAM_H 1
66#define HAVE_FNMATCH_H 1
67#define HAVE_SYS_UN_H 1
68#define HAVE_SASL_SASL_H 1
69
70/* Functions */
71/* #undef HAVE_ALIGNED_MALLOC */
72#define HAVE_BACKTRACE 1
73#define HAVE_INDEX 1
74#define HAVE_CHOWN 1
75#define HAVE_CUSERID 1
76/* #undef HAVE_DIRECTIO */
77#define HAVE_FTRUNCATE 1
78#define HAVE_FCHMOD 1
79#define HAVE_FCNTL 1
80#define HAVE_FDATASYNC 1
81#define HAVE_DECL_FDATASYNC 1
82#define HAVE_FEDISABLEEXCEPT 1
83#define HAVE_FSYNC 1
84/* #undef HAVE_GETHRTIME */
85#define HAVE_GETPASS 1
86/* #undef HAVE_GETPASSPHRASE */
87#define HAVE_GETPWNAM 1
88#define HAVE_GETPWUID 1
89#define HAVE_GETRUSAGE 1
90#define HAVE_INITGROUPS 1
91/* #undef HAVE_ISSETUGID */
92#define HAVE_GETUID 1
93#define HAVE_GETEUID 1
94#define HAVE_GETGID 1
95#define HAVE_GETEGID 1
96/* #undef HAVE_LSAN_DO_RECOVERABLE_LEAK_CHECK */
97#define HAVE_MADVISE 1
98#define HAVE_MALLOC_INFO 1
99#define HAVE_MLOCK 1
100#define HAVE_MLOCKALL 1
101#define HAVE_MMAP64 1
102#define HAVE_POLL 1
103#define HAVE_POSIX_FALLOCATE 1
104#define HAVE_POSIX_MEMALIGN 1
105#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
106#define HAVE_PTHREAD_GETAFFINITY_NP 1
107#define HAVE_PTHREAD_SIGMASK 1
108#define HAVE_PTHREAD_SETNAME_NP_LINUX 1
109/* #undef HAVE_PTHREAD_SETNAME_NP_MACOS */
110/* #undef HAVE_SET_THREAD_DESCRIPTION */
111#define HAVE_SLEEP 1
112#define HAVE_STPCPY 1
113#define HAVE_STPNCPY 1
114/* #undef HAVE_STRLCPY */
115/* #undef HAVE_STRLCAT */
116#define HAVE_STRPTIME 1
117#define HAVE_STRSIGNAL 1
118/* #undef HAVE_TELL */
119#define HAVE_VASPRINTF 1
120#define HAVE_MEMALIGN 1
121#define HAVE_NL_LANGINFO 1
122/* #undef HAVE_HTONLL */
123#define HAVE_EPOLL 1
124
125/* WL2373 */
126#define HAVE_SYS_TIME_H 1
127#define HAVE_SYS_TIMES_H 1
128#define HAVE_TIMES 1
129#define HAVE_GETTIMEOFDAY 1
130
131/* Symbols */
132#define HAVE_LRAND48 1
133#define GWINSZ_IN_SYS_IOCTL 1
134#define FIONREAD_IN_SYS_IOCTL 1
135/* #undef FIONREAD_IN_SYS_FILIO */
136#define HAVE_MADV_DONTDUMP 1
137#define HAVE_O_TMPFILE
138
139/* #undef HAVE_KQUEUE */
140#define HAVE_SETNS 1
141/* #undef HAVE_KQUEUE_TIMERS */
142#define HAVE_POSIX_TIMERS 1
143
144/* Endianess */
145/* #undef WORDS_BIGENDIAN */
146#define HAVE_ENDIAN_CONVERSION_MACROS 1
147
148/* Type sizes */
149#define SIZEOF_VOIDP 8
150#define SIZEOF_CHARP 8
151#define SIZEOF_LONG 8
152#define SIZEOF_SHORT 2
153#define SIZEOF_INT 4
154#define SIZEOF_LONG_LONG 8
155#define SIZEOF_TIME_T 8
156#define HAVE_ULONG 1
157#define HAVE_U_INT32_T 1
158#define HAVE_TM_GMTOFF 1
159
160/* Support for tagging symbols with __attribute__((visibility("hidden"))) */
161#define HAVE_VISIBILITY_HIDDEN 1
162
163/* Code tests*/
164#define HAVE_CLOCK_GETTIME 1
165#define HAVE_CLOCK_REALTIME 1
166#define TIME_WITH_SYS_TIME 1
167/* #undef NO_FCNTL_NONBLOCK */
168#define HAVE_PAUSE_INSTRUCTION 1
169/* #undef HAVE_FAKE_PAUSE_INSTRUCTION */
170/* #undef HAVE_HMT_PRIORITY_INSTRUCTION */
171#define HAVE_ABI_CXA_DEMANGLE 1
172#define HAVE_BUILTIN_UNREACHABLE 1
173#define HAVE_BUILTIN_EXPECT 1
174#define HAVE_BUILTIN_STPCPY 1
175#define HAVE_GCC_SYNC_BUILTINS 1
176/* #undef HAVE_VALGRIND */
177#define HAVE_SYS_GETTID 1
178/* #undef HAVE_PTHREAD_GETTHREADID_NP */
179/* #undef HAVE_PTHREAD_THREADID_NP */
180#define HAVE_INTEGER_PTHREAD_SELF 1
181#define HAVE_PTHREAD_SETNAME_NP 1
182
183/* IPV6 */
184/* #undef HAVE_NETINET_IN6_H */
185/* #undef HAVE_STRUCT_IN6_ADDR */
186
187/*
188 * Platform specific CMake files
189 */
190#define MACHINE_TYPE "x86_64"
191/* #undef LINUX_ALPINE */
192/* #undef LINUX_SUSE */
193/* #undef LINUX_RHEL6 */
194#define LINUX_RHEL7
195/* #undef LINUX_RHEL8 */
196#define HAVE_LINUX_LARGE_PAGES 1
197/* #undef HAVE_SOLARIS_LARGE_PAGES */
198/* #undef HAVE_SOLARIS_ATOMIC */
199/* #undef WITH_SYSTEMD_DEBUG */
200#define SYSTEM_TYPE "Linux"
201/* This should mean case insensitive file system */
202/* #undef FN_NO_CASE_SENSE */
203/* #undef APPLE_ARM */
204#define HAVE_BUILD_ID_SUPPORT
205
206/*
207 * From main CMakeLists.txt
208 */
209/* #undef CHECK_ERRMSG_FORMAT */
210#define MAX_INDEXES 64U
211/* #undef WITH_INNODB_MEMCACHED */
212/* #undef ENABLE_MEMCACHED_SASL */
213/* #undef ENABLE_MEMCACHED_SASL_PWDB */
214#define ENABLED_PROFILING 1
215/* #undef HAVE_ASAN */
216/* #undef HAVE_LSAN */
217/* #undef HAVE_UBSAN */
218/* #undef HAVE_TSAN */
219/* #undef ENABLED_LOCAL_INFILE */
220#define KERBEROS_LIB_CONFIGURED
221#define SCRAM_LIB_CONFIGURED
222/* #undef WITH_HYPERGRAPH_OPTIMIZER */
223/* #undef KERBEROS_LIB_SSPI */
224
225/* Lock Order */
226/* #undef WITH_LOCK_ORDER */
227
228/* Character sets and collations */
229#define DEFAULT_MYSQL_HOME "/usr/local/mysql"
230#define SHAREDIR "/usr/local/mysql/share"
231#define DEFAULT_BASEDIR "/usr/local/mysql"
232#define MYSQL_DATADIR "/usr/local/mysql/data"
233#define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring"
234#define DEFAULT_CHARSET_HOME "/usr/local/mysql"
235#define PLUGINDIR "/usr/local/mysql/lib/plugin"
236#define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc"
237#define DEFAULT_TMPDIR P_tmpdir
238#define MYSQL_ICU_DATADIR "/usr/local/mysql/lib/private"
239#define ICUDT_DIR "icudt73l"
240/*
241 * Readline
242 */
243#define HAVE_MBSTATE_T
244#define HAVE_LANGINFO_CODESET
245#define HAVE_WCSDUP
246#define HAVE_WCHAR_T 1
247#define HAVE_WINT_T 1
248#define HAVE_CURSES_H 1
249#define HAVE_NCURSES_H 1
250#define USE_LIBEDIT_INTERFACE 1
251#define HAVE_HIST_ENTRY 1
252#define USE_NEW_EDITLINE_INTERFACE 1
253#define EDITLINE_HAVE_COMPLETION_CHAR 1
254/* #undef EDITLINE_HAVE_COMPLETION_INT */
255
256
257/*
258 * Libedit
259 */
260#define HAVE_GETLINE 1
261/* #undef HAVE___SECURE_GETENV */
262#define HAVE_SECURE_GETENV 1
263/* #undef HAVE_VIS */
264/* #undef HAVE_UNVIS */
265/* #undef HAVE_GETPW_R_DRAFT */
266#define HAVE_GETPW_R_POSIX
267
268/*
269 * Character sets
270 */
271#define MYSQL_DEFAULT_CHARSET_NAME "utf8mb4"
272#define MYSQL_DEFAULT_COLLATION_NAME "utf8mb4_0900_ai_ci"
273
274/*
275 * Performance schema
276 */
277#define WITH_PERFSCHEMA_STORAGE_ENGINE 1
278/* #undef DISABLE_PSI_THREAD */
279/* #undef DISABLE_PSI_MUTEX */
280/* #undef DISABLE_PSI_RWLOCK */
281/* #undef DISABLE_PSI_COND */
282/* #undef DISABLE_PSI_FILE */
283/* #undef DISABLE_PSI_TABLE */
284/* #undef DISABLE_PSI_SOCKET */
285/* #undef DISABLE_PSI_STAGE */
286/* #undef DISABLE_PSI_STATEMENT */
287/* #undef DISABLE_PSI_SP */
288/* #undef DISABLE_PSI_PS */
289/* #undef DISABLE_PSI_IDLE */
290/* #undef DISABLE_PSI_ERROR */
291/* #undef DISABLE_PSI_STATEMENT_DIGEST */
292/* #undef DISABLE_PSI_METADATA */
293/* #undef DISABLE_PSI_MEMORY */
294/* #undef DISABLE_PSI_TRANSACTION */
295/* #undef DISABLE_PSI_SERVER_TELEMETRY_TRACES */
296
297/*
298 * MySQL version
299 */
300#define MYSQL_VERSION_MAJOR 8
301#define MYSQL_VERSION_MINOR 0
302#define MYSQL_VERSION_PATCH 39
303#define MYSQL_VERSION_EXTRA ""
304#define PACKAGE "mysql"
305#define PACKAGE_VERSION "8.0.39"
306#define VERSION "8.0.39"
307#define PROTOCOL_VERSION 10
308
309/*
310 * CPU info
311 */
312#define CPU_LEVEL1_DCACHE_LINESIZE 64
313#define CPU_PAGE_SIZE 4096
314
315/*
316 * NDB
317 */
318#define HAVE_GETRLIMIT 1
319#define WITH_NDBCLUSTER_STORAGE_ENGINE 1
320#define HAVE_PTHREAD_SETSCHEDPARAM 1
321
322/*
323 * Other
324 */
325/* #undef EXTRA_DEBUG */
326#define HANDLE_FATAL_SIGNALS 1
327
328/*
329 * Hardcoded values needed by libevent/NDB/memcached
330 */
331#define HAVE_FCNTL_H 1
332#define HAVE_GETADDRINFO 1
333#define HAVE_INTTYPES_H 1
334#define HAVE_SIGNAL_H 1
335#define HAVE_STDARG_H 1
336#define HAVE_STDINT_H 1
337#define HAVE_STDLIB_H 1
338#define HAVE_STRTOK_R 1
339#define HAVE_STRTOLL 1
340#define HAVE_SYS_STAT_H 1
341#define HAVE_SYS_TYPES_H 1
342#define SIZEOF_CHAR 1
343
344/* For --secure-file-priv */
345#define DEFAULT_SECURE_FILE_PRIV_DIR "NULL"
346#define HAVE_LIBNUMA 1
347
348/* For default value of --early_plugin_load */
349/* #undef DEFAULT_EARLY_PLUGIN_LOAD */
350
351/* For default value of --partial_revokes */
352#define DEFAULT_PARTIAL_REVOKES 0
353
354#define SO_EXT ".so"
355
356
357/* From libmysql/CMakeLists.txt */
358#define HAVE_UNIX_DNS_SRV 1
359/* #undef HAVE_WIN32_DNS_SRV */
360
361/* ARM crc32 support */
362/* #undef HAVE_ARMV8_CRC32_INTRINSIC */
363
364/* sasl_client_done support */
365#define SASL_CLIENT_DONE_SUPPORTED 1
366
367#endif