File: configure.ac

package info (click to toggle)
glibc 2.24-11%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 225,316 kB
  • sloc: ansic: 996,116; asm: 261,826; sh: 10,483; makefile: 9,849; cpp: 4,169; python: 3,971; perl: 2,254; awk: 1,753; pascal: 1,521; yacc: 291; sed: 80
file content (34 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download | duplicates (28)
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
30
31
32
33
34
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/powerpc/powerpc32/fpu.

# Test whether integer to floating point conversions use fcfid.
AC_CACHE_CHECK([for fcfid use], [libc_cv_ppc_fcfid], [dnl
echo 'double foo (int x) { return (double) x; }' > conftest.c
libc_cv_ppc_fcfid=no
if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
changequote(,)dnl
  if grep '[ 	]fcfid' conftest.s > /dev/null 2>&1; then
    libc_cv_ppc_fcfid=yes
  fi
changequote([,])dnl
fi
rm -rf conftest*])
if test $libc_cv_ppc_fcfid = yes; then
  AC_DEFINE([HAVE_PPC_FCFID])
fi

# Test whether floating point to long long conversions use fctidz.
AC_CACHE_CHECK([for fctidz use], [libc_cv_ppc_fctidz], [dnl
echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c
libc_cv_ppc_fctidz=no
if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
changequote(,)dnl
  if grep '[ 	]fctidz' conftest.s > /dev/null 2>&1; then
    libc_cv_ppc_fctidz=yes
  fi
changequote([,])dnl
fi
rm -rf conftest*])
if test $libc_cv_ppc_fctidz = yes; then
  AC_DEFINE([HAVE_PPC_FCTIDZ])
fi