File: configure.ac

package info (click to toggle)
glibc 2.24-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 223,412 kB
  • sloc: ansic: 991,967; asm: 261,800; sh: 10,385; makefile: 9,710; cpp: 4,169; python: 3,971; perl: 2,254; awk: 1,753; pascal: 1,521; yacc: 291; sed: 80
file content (29 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/unix/sysv/linux/powerpc/powerpc64/.

LIBC_SLIBDIR_RTLDDIR([lib64], [lib64])

# Define default-abi according to compiler flags.
AC_CACHE_CHECK([whether the compiler is using the PowerPC64 ELFv2 ABI],
  [libc_cv_ppc64_elfv2_abi],
  [AC_EGREP_CPP(yes,[#if _CALL_ELF == 2
                      yes
                     #endif
  ], libc_cv_ppc64_elfv2_abi=yes, libc_cv_ppc64_elfv2_abi=no)])
if test $libc_cv_ppc64_elfv2_abi = yes; then
  LIBC_CONFIG_VAR([default-abi], [64-v2])
  # For shlib-versions.
  AC_DEFINE(HAVE_ELFV2_ABI)
else
  LIBC_CONFIG_VAR([default-abi], [64-v1])
  # Compiler that do not support ELFv2 ABI does not define _CALL_ELF
  AC_CACHE_CHECK([whether the compiler defines _CALL_ELF],
    [libc_cv_ppc64_def_call_elf],
    [AC_EGREP_CPP(yes,[#ifdef _CALL_ELF
                         yes
                       #endif
    ], libc_cv_ppc64_def_call_elf=yes, libc_cv_ppc64_def_call_elf=no)])
  if test $libc_cv_ppc64_def_call_elf = no; then
    libc_extra_cppflags="$libc_extra_cppflags -D_CALL_ELF=1"
  fi
fi