File: preconfigure.ac

package info (click to toggle)
glibc 2.41-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300,376 kB
  • sloc: ansic: 1,050,583; asm: 238,243; makefile: 20,379; python: 13,537; sh: 11,827; cpp: 5,197; awk: 1,795; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (20 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (36)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local preconfigure fragment for sysdeps/x86_64

test -n "$base_machine" || case "$machine" in
x86_64)
  base_machine=x86_64
  # Check if we are building for x32.
  AC_CACHE_CHECK(whether $CC compiles in -mx32 mode by default,
		 libc_cv_x32, [dnl
  AC_TRY_COMPILE(dnl
[#ifndef __ILP32__
# error not x32
#endif], [], libc_cv_x32=yes, libc_cv_x32=no)])
  if test $libc_cv_x32 = yes; then
    machine=x86_64/x32
  else
    machine=x86_64/64
  fi
  ;;
esac