1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/powerpc/powerpc64le.
5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports binary128 floating point type" >&5
6 $as_echo_n "checking if $CC supports binary128 floating point type... " >&6; }
7 if ${libc_cv_compiler_powerpc64le_binary128_ok+:} false; then :
8 $as_echo_n "(cached) " >&6
11 CFLAGS="$CFLAGS -Werror -mfloat128"
12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15 __float128 a, b, c, d, e;
21 a = __builtin_nansq ("0");
22 b = __builtin_huge_valq ();
23 c = __builtin_infq ();
24 d = __builtin_fabsq (x);
25 e = __builtin_nanq ("0");
26 i = __builtin_signbit (x);
27 return __builtin_copysignq (x, x);
31 if ac_fn_c_try_compile "$LINENO"; then :
32 libc_cv_compiler_powerpc64le_binary128_ok=yes
34 libc_cv_compiler_powerpc64le_binary128_ok=no
36 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_binary128_ok" >&5
40 $as_echo "$libc_cv_compiler_powerpc64le_binary128_ok" >&6; }
41 if test "$libc_cv_compiler_powerpc64le_binary128_ok" != "yes"; then :
42 critic_missing="$critic_missing binary128 floating point type (GCC >= 6.2) is required on powerpc64le."
46 CFLAGS="$CFLAGS $libc_cv_cc_submachine"
47 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5
48 $as_echo_n "checking if the target machine is at least POWER8... " >&6; }
49 if ${libc_cv_target_power8_ok+:} false; then :
50 $as_echo_n "(cached) " >&6
53 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57 #error invalid target architecture
61 if ac_fn_c_try_compile "$LINENO"; then :
62 libc_cv_target_power8_ok=yes
64 libc_cv_target_power8_ok=no
66 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5
69 $as_echo "$libc_cv_target_power8_ok" >&6; }
70 if test "$libc_cv_target_power8_ok" != "yes"; then :
71 critic_missing="$critic_missing POWER8 or newer is required on powerpc64le."
75 test -n "$critic_missing" && as_fn_error $? "*** $critic_missing" "$LINENO" 5