1GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. 2# Local preconfigure fragment for sysdeps/x86_64 3 4test -n "$base_machine" || case "$machine" in 5x86_64) 6 base_machine=x86_64 7 # Check if we are building for x32. 8 AC_CACHE_CHECK(whether $CC compiles in -mx32 mode by default, 9 libc_cv_x32, [dnl 10 AC_TRY_COMPILE(dnl 11[#ifndef __ILP32__ 12# error not x32 13#endif], [], libc_cv_x32=yes, libc_cv_x32=no)]) 14 if test $libc_cv_x32 = yes; then 15 machine=x86_64/x32 16 else 17 machine=x86_64/64 18 fi 19 ;; 20esac 21