lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. |
| 2 | # Local configure fragment for sysdeps/aarch64. |
| 3 | |
| 4 | # We check to see if the compiler and flags are |
| 5 | # selecting the big endian ABI and if they are then |
| 6 | # we set libc_cv_aarch64_be to yes which causes |
| 7 | # HAVE_AARCH64_BE to be defined in config.h and |
| 8 | # in include/libc-symbols.h and thus available to |
| 9 | # shlib-versions to select the appropriate name for |
| 10 | # the dynamic linker via %ifdef. |
| 11 | AC_CACHE_CHECK([for big endian], |
| 12 | [libc_cv_aarch64_be], |
| 13 | [AC_EGREP_CPP(yes,[#ifdef __AARCH64EB__ |
| 14 | yes |
| 15 | #endif |
| 16 | ], libc_cv_aarch64_be=yes, libc_cv_aarch64_be=no)]) |
| 17 | if test $libc_cv_aarch64_be = yes; then |
| 18 | AC_DEFINE(HAVE_AARCH64_BE) |
| 19 | LIBC_CONFIG_VAR([default-abi], [lp64_be]) |
| 20 | else |
| 21 | LIBC_CONFIG_VAR([default-abi], [lp64]) |
| 22 | fi |