Linux: Remove unused generic Makefile
[glibc.git] / sysdeps / unix / sysv / linux / loongarch / configure.ac
blob04e9150a9bd71903f99e835d5f2ef859d7080e48
1 sinclude(./aclocal.m4)dnl Autoconf lossage
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 # Local configure fragment for sysdeps/unix/sysv/linux/loongarch.
5 arch_minimum_kernel=5.19.0
7 libc_cv_loongarch_int_abi=no
8 AC_EGREP_CPP(4 8 8, [__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
9   ], libc_cv_loongarch_int_abi=lp64)
10 if test $libc_cv_loongarch_int_abi = no; then
11   AC_MSG_ERROR([Unable to determine integer ABI])
14 libc_cv_loongarch_float_abi=no
15 AC_EGREP_CPP(yes, [#ifdef __loongarch_double_float
16                    yes
17                    #endif
18   ],libc_cv_loongarch_float_abi=d)
19 AC_EGREP_CPP(yes, [#ifdef __loongarch_soft_float
20                    yes
21                    #endif
22   ],libc_cv_loongarch_float_abi=s)
23 if test "$libc_cv_loongarch_float_abi" = no; then
24   AC_MSG_ERROR([Unable to determine floating-point ABI])
27 LIBC_CONFIG_VAR([default-abi], [$libc_cv_loongarch_int_abi$libc_cv_loongarch_float_abi])
29 case $libc_cv_loongarch_int_abi$libc_cv_loongarch_float_abi in
30 lp64s)
31   LIBC_SLIBDIR_RTLDDIR([lib64/sf], [lib64])
32   ;;
33 lp64d)
34   LIBC_SLIBDIR_RTLDDIR([lib64], [lib64])
35   ;;
36 esac
38 ldd_rewrite_script=sysdeps/unix/sysv/linux/loongarch/ldd-rewrite.sed