]>
Commit | Line | Data |
---|---|---|
4efe3ce4 GG |
1 | # This file is generated from configure.ac by Autoconf. DO NOT EDIT! |
2 | # Local configure fragment for sysdeps/powerpc/powerpc64le. | |
3 | ||
a27d2c19 GG |
4 | OLD_CFLAGS="$CFLAGS" |
5 | CFLAGS="$CFLAGS $libc_cv_cc_submachine" | |
4a2dd41c | 6 | |
c6cb8783 SP |
7 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5 |
8 | printf %s "checking if the target machine is at least POWER8... " >&6; } | |
9 | if test ${libc_cv_target_power8_ok+y} | |
10 | then : | |
11 | printf %s "(cached) " >&6 | |
12 | else $as_nop | |
a27d2c19 GG |
13 | |
14 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15 | /* end confdefs.h. */ | |
16 | ||
17 | #ifndef _ARCH_PWR8 | |
18 | #error invalid target architecture | |
19 | #endif | |
20 | ||
21 | _ACEOF | |
c6cb8783 SP |
22 | if ac_fn_c_try_compile "$LINENO" |
23 | then : | |
a27d2c19 | 24 | libc_cv_target_power8_ok=yes |
c6cb8783 | 25 | else $as_nop |
a27d2c19 GG |
26 | libc_cv_target_power8_ok=no |
27 | fi | |
c6cb8783 | 28 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a27d2c19 | 29 | fi |
c6cb8783 SP |
30 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 |
31 | printf "%s\n" "$libc_cv_target_power8_ok" >&6; } | |
32 | if test "$libc_cv_target_power8_ok" != "yes" | |
33 | then : | |
a27d2c19 GG |
34 | critic_missing="$critic_missing POWER8 or newer is required on powerpc64le." |
35 | fi | |
36 | CFLAGS="$OLD_CFLAGS" | |
37 | ||
50545f5a PM |
38 | OLD_CFLAGS="$CFLAGS" |
39 | CFLAGS="$CFLAGS -mno-gnu-attribute" | |
c6cb8783 SP |
40 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -mno-gnu-attribute" >&5 |
41 | printf %s "checking if the compiler supports -mno-gnu-attribute... " >&6; } | |
42 | if test ${libc_cv_no_gnu_attr_ok+y} | |
43 | then : | |
44 | printf %s "(cached) " >&6 | |
45 | else $as_nop | |
50545f5a PM |
46 | |
47 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
48 | /* end confdefs.h. */ | |
49 | ||
50 | ||
51 | _ACEOF | |
c6cb8783 SP |
52 | if ac_fn_c_try_compile "$LINENO" |
53 | then : | |
50545f5a | 54 | libc_cv_no_gnu_attr_ok=yes |
c6cb8783 | 55 | else $as_nop |
50545f5a PM |
56 | libc_cv_no_gnu_attr_ok=no |
57 | fi | |
c6cb8783 | 58 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
50545f5a | 59 | fi |
c6cb8783 SP |
60 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 |
61 | printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; } | |
62 | if test "$libc_cv_no_gnu_attr_ok" != "yes" | |
63 | then : | |
50545f5a PM |
64 | critic_missing="$critic_missing A compiler with -mno-gnu-attribute is required on powerpc64le." |
65 | fi | |
66 | CFLAGS="$OLD_CFLAGS" | |
67 | ||
c6cb8783 SP |
68 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC compiles signbit with 128-bit floating point type" >&5 |
69 | printf %s "checking if $CC compiles signbit with 128-bit floating point type... " >&6; } | |
70 | if test ${libc_cv_compiler_powerpc64le_ice+y} | |
71 | then : | |
72 | printf %s "(cached) " >&6 | |
73 | else $as_nop | |
50545f5a PM |
74 | save_CFLAGS="$CFLAGS" |
75 | CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" | |
76 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
77 | /* end confdefs.h. */ | |
78 | ||
79 | int sbr (long double a) { return __builtin_signbit (a); } | |
80 | int sbm (long double *a) { return __builtin_signbit (*a); } | |
81 | int sbo (long double *a) { return __builtin_signbit (a[4]); } | |
82 | int sbi (long double *a, unsigned long n) { return __builtin_signbit (a[n]); } | |
83 | void sbs (int *p, long double a) { *p = __builtin_signbit (a); } | |
84 | ||
85 | _ACEOF | |
c6cb8783 SP |
86 | if ac_fn_c_try_compile "$LINENO" |
87 | then : | |
50545f5a | 88 | libc_cv_compiler_powerpc64le_ice=yes |
c6cb8783 | 89 | else $as_nop |
50545f5a PM |
90 | libc_cv_compiler_powerpc64le_ice=no |
91 | fi | |
c6cb8783 | 92 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
50545f5a PM |
93 | CFLAGS="$save_CFLAGS" |
94 | fi | |
c6cb8783 SP |
95 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 |
96 | printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } | |
97 | if test "$libc_cv_compiler_powerpc64le_ice" != "yes" | |
98 | then : | |
50545f5a PM |
99 | critic_missing="$critic_missing __builtin_signbit is broken. GCC 7.4 or newer is required to resolve (PR83862)." |
100 | fi | |
101 | ||
c6cb8783 SP |
102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128" >&5 |
103 | printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128... " >&6; } | |
104 | if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} | |
105 | then : | |
106 | printf %s "(cached) " >&6 | |
107 | else $as_nop | |
5c7ccc29 PM |
108 | save_CFLAGS="$CFLAGS" |
109 | CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" | |
110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
111 | /* end confdefs.h. */ | |
112 | ||
113 | long double x; | |
114 | ||
115 | _ACEOF | |
c6cb8783 SP |
116 | if ac_fn_c_try_compile "$LINENO" |
117 | then : | |
5c7ccc29 | 118 | libc_cv_compiler_powerpc64le_ldbl128_mabi=yes |
c6cb8783 | 119 | else $as_nop |
5c7ccc29 PM |
120 | libc_cv_compiler_powerpc64le_ldbl128_mabi=no |
121 | fi | |
c6cb8783 | 122 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5c7ccc29 PM |
123 | CFLAGS="$save_CFLAGS" |
124 | fi | |
c6cb8783 SP |
125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 |
126 | printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } | |
127 | if test "$libc_cv_compiler_powerpc64le_ldbl128_mabi" = "no" | |
128 | then : | |
01d78062 | 129 | critic_missing="$critic_missing The compiler must support -mabi=ieeelongdouble and -mlong-double-128 simultaneously." |
5c7ccc29 PM |
130 | fi |
131 | ||
3a0acbdc PM |
132 | for ac_prog in $OBJCOPY |
133 | do | |
134 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
135 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
137 | printf %s "checking for $ac_word... " >&6; } | |
138 | if test ${ac_cv_prog_OBJCOPY+y} | |
139 | then : | |
140 | printf %s "(cached) " >&6 | |
141 | else $as_nop | |
3a0acbdc PM |
142 | if test -n "$OBJCOPY"; then |
143 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
144 | else | |
145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
146 | for as_dir in $PATH | |
147 | do | |
148 | IFS=$as_save_IFS | |
c6cb8783 SP |
149 | case $as_dir in #((( |
150 | '') as_dir=./ ;; | |
151 | */) ;; | |
152 | *) as_dir=$as_dir/ ;; | |
153 | esac | |
3a0acbdc | 154 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 155 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3a0acbdc | 156 | ac_cv_prog_OBJCOPY="$ac_prog" |
c6cb8783 | 157 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a0acbdc PM |
158 | break 2 |
159 | fi | |
160 | done | |
161 | done | |
162 | IFS=$as_save_IFS | |
163 | ||
164 | fi | |
165 | fi | |
166 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
167 | if test -n "$OBJCOPY"; then | |
c6cb8783 SP |
168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
169 | printf "%s\n" "$OBJCOPY" >&6; } | |
3a0acbdc | 170 | else |
c6cb8783 SP |
171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
172 | printf "%s\n" "no" >&6; } | |
3a0acbdc PM |
173 | fi |
174 | ||
175 | ||
176 | test -n "$OBJCOPY" && break | |
177 | done | |
178 | ||
179 | if test -z "$OBJCOPY"; then | |
180 | ac_verc_fail=yes | |
181 | else | |
182 | # Found it, now check the version. | |
c6cb8783 SP |
183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $OBJCOPY" >&5 |
184 | printf %s "checking version of $OBJCOPY... " >&6; } | |
3a0acbdc PM |
185 | ac_prog_version=`$OBJCOPY --version 2>&1 | sed -n 's/^.*GNU objcopy.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
186 | case $ac_prog_version in | |
187 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
188 | 2.1[0-9][0-9]*|2.2[6-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) | |
189 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
190 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
191 | ||
192 | esac | |
c6cb8783 SP |
193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
194 | printf "%s\n" "$ac_prog_version" >&6; } | |
3a0acbdc PM |
195 | fi |
196 | if test $ac_verc_fail = yes; then | |
197 | AS=: critic_missing="$critic_missing objcopy >= 2.26 is required on powerpc64le" | |
198 | fi | |
199 | ||
50545f5a | 200 | |
4efe3ce4 | 201 | test -n "$critic_missing" && as_fn_error $? "*** $critic_missing" "$LINENO" 5 |
c6cb8783 | 202 |