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/powerpc/.
5 AC_CACHE_CHECK(whether $CC $CFLAGS -mlong-double-128 uses IBM extended format,
6 libc_cv_mlong_double_128ibm, [dnl
8 CFLAGS="$CFLAGS -mlong-double-128"
9 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <float.h>]], [[
10 #if LDBL_MANT_DIG != 106
11 # error "compiler doesn't implement IBM extended format of long double"
13 long double foobar (long double x) { return x; }]])],
14 libc_cv_mlong_double_128ibm=yes,
15 libc_cv_mlong_double_128ibm=no)
16 CFLAGS="$save_CFLAGS"])
18 if test "$libc_cv_mlong_double_128ibm" = no; then
19 AC_CACHE_CHECK(whether $CC $CFLAGS supports -mabi=ibmlongdouble,
20 libc_cv_mabi_ibmlongdouble, [dnl
22 CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
23 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <float.h>]], [[
24 #if LDBL_MANT_DIG != 106
25 # error "compiler doesn't implement IBM extended format of long double"
27 long double foobar (long double x) { return x; }]])],
28 libc_cv_mabi_ibmlongdouble=yes,
29 libc_cv_mabi_ibmlongdouble=no)
30 CFLAGS="$save_CFLAGS"])
32 if test "$libc_cv_mabi_ibmlongdouble" = yes; then
33 CFLAGS="$CFLAGS -mabi=ibmlongdouble"
35 AC_MSG_ERROR([this configuration requires -mlong-double-128 IBM extended format support])
39 LIBC_LINKER_FEATURE([--no-tls-get-addr-optimize], [-Wl,--no-tls-get-addr-optimize],
40 [libc_cv_tls_get_addr_optimize=yes], [libc_cv_tls_get_addr_optimize=no])
41 LIBC_CONFIG_VAR([have-tls-get-addr-optimize], [$libc_cv_tls_get_addr_optimize])
43 ldd_rewrite_script=sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed