tst-getcpu: decode errno when sched_getcpu fails
[glibc.git] / config.h.in
blobdd184b0cf47b92cbea76521b399a7c0b9fe1c026
1 #if !defined IS_IN_build && !defined __ASSEMBLER__ && !defined _ISOMAC \
2 && !defined __OPTIMIZE__
3 # error "glibc cannot be compiled without optimization"
4 #endif
6 /* Another evil option when it comes to compiling the C library is
7 --ffast-math since it alters the ABI. */
8 #if defined __FAST_MATH__ && !defined TEST_FAST_MATH
9 # error "glibc must not be compiled with -ffast-math"
10 #endif
12 /* Define if building with SELinux support. Set by --with-selinux. */
13 #undef HAVE_SELINUX
15 /* Defined if building with SELinux support & audit libs are detected. */
16 #undef HAVE_LIBAUDIT
18 /* Defined if building with SELinux support & libcap libs are detected. */
19 #undef HAVE_LIBCAP
21 /* Define if weak symbols are available via the `.weak' directive. */
22 #undef HAVE_ASM_WEAK_DIRECTIVE
24 /* Define if weak symbols are available via the `.weakext' directive. */
25 #undef HAVE_ASM_WEAKEXT_DIRECTIVE
27 /* Define if CFI directives are available. */
28 #undef HAVE_ASM_CFI_DIRECTIVES
30 /* Define to the assembler line separator character for multiple
31 assembler instructions per line. Default is `;' */
32 #undef ASM_LINE_SEP
34 /* Define if __attribute__((section("foo"))) puts quotes around foo. */
35 #undef HAVE_SECTION_QUOTES
37 /* Define if the assembler supports the `.set' directive. */
38 #undef HAVE_ASM_SET_DIRECTIVE
40 /* Define to the name of the assembler's directive for
41 declaring a symbol global (default `.globl'). */
42 #undef ASM_GLOBAL_DIRECTIVE
44 /* Define to the prefix before `object' or `function' in the
45 assembler's `.type' directive, if it has one. */
46 #undef ASM_TYPE_DIRECTIVE_PREFIX
48 /* Define if the assembler supports the gnu_unique_object symbol type. */
49 #undef HAVE_ASM_UNIQUE_OBJECT
51 /* Define a symbol_name as a global .symbol_name for ld. */
52 #undef HAVE_ASM_GLOBAL_DOT_NAME
54 /* On powerpc64, use overlapping .opd entries. */
55 #undef USE_PPC64_OVERLAPPING_OPD
57 /* Define if the assembler generates debugging information directly. */
58 #undef HAVE_CPP_ASM_DEBUGINFO
60 /* Define if _Unwind_Find_FDE should be exported from glibc. */
61 #undef EXPORT_UNWIND_FIND_FDE
63 /* Define if using ELF and the assembler supports the `.previous'
64 directive. */
65 #undef HAVE_ASM_PREVIOUS_DIRECTIVE
67 /* Define if using ELF and the assembler supports the `.popsection'
68 directive. */
69 #undef HAVE_ASM_POPSECTION_DIRECTIVE
71 /* Define if versioning of the library is wanted. */
72 #undef DO_VERSIONING
74 /* Defined to the oldest ABI we support, like 2.1. */
75 #undef GLIBC_OLDEST_ABI
77 /* Define if static NSS modules are wanted. */
78 #undef DO_STATIC_NSS
80 /* Define if the compiler supports __builtin_memset. */
81 #undef HAVE_BUILTIN_MEMSET
83 /* Define if the regparm attribute shall be used for local functions
84 (gcc on ix86 only). */
85 #undef USE_REGPARMS
87 /* Defined on PowerPC if the GCC being used has a problem with clobbering
88 certain registers (CR0, MQ, CTR, LR) in asm statements. */
89 #undef BROKEN_PPC_ASM_CR0
91 /* Defined on SPARC if GCC emits GOTDATA relocations. */
92 #undef HAVE_GCC_GOTDATA
94 /* Define on SPARC if AS supports VIS3 instructions. */
95 #undef HAVE_AS_VIS3_SUPPORT
97 /* Define if the linker supports the -z combreloc option. */
98 #undef HAVE_Z_COMBRELOC
100 /* Define if _rtld_local structure should be forced into .sdata section. */
101 #undef HAVE_SDATA_SECTION
103 /* Define if gcc supports SSE4. */
104 #undef HAVE_SSE4_SUPPORT
106 /* Define if gcc supports AVX. */
107 #undef HAVE_AVX_SUPPORT
109 /* Define if gcc supports VEX encoding. */
110 #undef HAVE_SSE2AVX_SUPPORT
112 /* Define if gcc supports FMA4. */
113 #undef HAVE_FMA4_SUPPORT
115 /* Define if the compiler\'s exception support is based on libunwind. */
116 #undef HAVE_CC_WITH_LIBUNWIND
118 /* Define if the access to static and hidden variables is position independent
119 and does not need relocations. */
120 #undef PI_STATIC_AND_HIDDEN
122 /* Define this to disable the 'hidden_proto' et al macros in
123 include/libc-symbols.h that avoid PLT slots in the shared objects. */
124 #undef NO_HIDDEN
127 /* Defined to some form of __attribute__ ((...)) if the compiler supports
128 a different, more efficient calling convention. */
129 #if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
130 # define internal_function __attribute__ ((regparm (3), stdcall))
131 #endif
133 /* Linux specific: minimum supported kernel version. */
134 #undef __LINUX_KERNEL_VERSION
136 /* Override abi-tags ABI version if necessary. */
137 #undef __ABI_TAG_VERSION
139 /* bash 2.0 introduced the _XXX_GNU_nonoption_argv_flags_ variable to help
140 getopt determine whether a parameter is a flag or not. This features
141 was disabled later since it caused trouble. We are by default therefore
142 disabling the support as well. */
143 #undef USE_NONOPTION_FLAGS
145 /* Mach/Hurd specific: define if mig supports the `retcode' keyword. */
146 #undef HAVE_MIG_RETCODE
148 /* Mach specific: define if the `host_page_size' RPC is available. */
149 #undef HAVE_HOST_PAGE_SIZE
151 /* Mach/i386 specific: define if the `i386_io_perm_*' RPCs are available. */
152 #undef HAVE_I386_IO_PERM_MODIFY
154 /* Mach/i386 specific: define if the `i386_set_gdt' RPC is available. */
155 #undef HAVE_I386_SET_GDT
157 /* Defined if forced unwind support is available. */
158 #undef HAVE_FORCED_UNWIND
160 /* Defined of libidn is available. */
161 #undef HAVE_LIBIDN
163 /* Define if inlined system calls are available. */
164 #undef HAVE_INLINED_SYSCALLS
166 /* Define if your assembler and linker support R_PPC_REL16* relocs. */
167 #undef HAVE_ASM_PPC_REL16
169 /* Define if your compiler defaults to -msecure-plt mode on ppc. */
170 #undef HAVE_PPC_SECURE_PLT
172 /* Define if __stack_chk_guard canary should be randomized at program startup. */
173 #undef ENABLE_STACKGUARD_RANDOMIZE
175 /* Define if multi-arch DSOs should be generated. */
176 #undef USE_MULTIARCH
178 /* Define if `.ctors' and `.dtors' sections shouldn't be used. */
179 #undef NO_CTORS_DTORS_SECTIONS
181 /* Define if obsolete RPC code should be made available for user-level code
182 to link against. */
183 #undef LINK_OBSOLETE_RPC
185 /* Define if Systemtap <sys/sdt.h> probes should be defined. */
186 #undef USE_STAP_PROBE
189 \f */
191 #ifndef _LIBC
193 /* These symbols might be defined by some sysdeps configures.
194 They are used only in miscellaneous generator programs, not
195 in compiling libc itself. */
197 /* sysdeps/generic/configure.in */
198 #undef HAVE_PSIGNAL
200 /* sysdeps/unix/configure.in */
201 #undef HAVE_STRERROR
203 /* sysdeps/unix/common/configure.in */
204 #undef HAVE_SYS_SIGLIST
205 #undef HAVE__SYS_SIGLIST
206 #undef HAVE__CTYPE_
207 #undef HAVE___CTYPE_
208 #undef HAVE___CTYPE
209 #undef HAVE__CTYPE__
210 #undef HAVE__CTYPE
211 #undef HAVE__LOCP
213 #endif
216 \f */
218 #ifdef _LIBC
220 /* The zic and zdump programs need these definitions. */
222 #define HAVE_STRERROR 1
224 /* The locale code needs these definitions. */
226 #define HAVE_REGEX 1
228 /* The ARM hard-float ABI is being used. */
229 #undef HAVE_ARM_PCS_VFP
231 #endif