]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/riscv/configure
configure: Use autoconf 2.71
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / riscv / configure
CommitLineData
c5061557
PD
1# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix/sysv/linux/riscv.
3
4arch_minimum_kernel=4.15.0
5
6libc_cv_riscv_int_abi=no
7
8
c6cb8783
SP
9{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10printf %s "checking for grep that handles long lines and -e... " >&6; }
11if test ${ac_cv_path_GREP+y}
12then :
13 printf %s "(cached) " >&6
14else $as_nop
c5061557
PD
15 if test -z "$GREP"; then
16 ac_path_GREP_found=false
17 # Loop through the user's path and test for each of PROGNAME-LIST
18 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20do
21 IFS=$as_save_IFS
c6cb8783
SP
22 case $as_dir in #(((
23 '') as_dir=./ ;;
24 */) ;;
25 *) as_dir=$as_dir/ ;;
26 esac
27 for ac_prog in grep ggrep
28 do
c5061557 29 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 30 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
c5061557
PD
31 as_fn_executable_p "$ac_path_GREP" || continue
32# Check for GNU ac_path_GREP and select it if it is found.
33 # Check for GNU $ac_path_GREP
34case `"$ac_path_GREP" --version 2>&1` in
35*GNU*)
36 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
37*)
38 ac_count=0
c6cb8783 39 printf %s 0123456789 >"conftest.in"
c5061557
PD
40 while :
41 do
42 cat "conftest.in" "conftest.in" >"conftest.tmp"
43 mv "conftest.tmp" "conftest.in"
44 cp "conftest.in" "conftest.nl"
c6cb8783 45 printf "%s\n" 'GREP' >> "conftest.nl"
c5061557
PD
46 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
47 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
48 as_fn_arith $ac_count + 1 && ac_count=$as_val
49 if test $ac_count -gt ${ac_path_GREP_max-0}; then
50 # Best one so far, save it but keep looking for a better one
51 ac_cv_path_GREP="$ac_path_GREP"
52 ac_path_GREP_max=$ac_count
53 fi
54 # 10*(2^10) chars as input seems more than enough
55 test $ac_count -gt 10 && break
56 done
57 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
58esac
59
60 $ac_path_GREP_found && break 3
61 done
62 done
63 done
64IFS=$as_save_IFS
65 if test -z "$ac_cv_path_GREP"; then
66 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
67 fi
68else
69 ac_cv_path_GREP=$GREP
70fi
71
72fi
c6cb8783
SP
73{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
74printf "%s\n" "$ac_cv_path_GREP" >&6; }
c5061557
PD
75 GREP="$ac_cv_path_GREP"
76
77
c6cb8783
SP
78{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
79printf %s "checking for egrep... " >&6; }
80if test ${ac_cv_path_EGREP+y}
81then :
82 printf %s "(cached) " >&6
83else $as_nop
c5061557
PD
84 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
85 then ac_cv_path_EGREP="$GREP -E"
86 else
87 if test -z "$EGREP"; then
88 ac_path_EGREP_found=false
89 # Loop through the user's path and test for each of PROGNAME-LIST
90 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
92do
93 IFS=$as_save_IFS
c6cb8783
SP
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 for ac_prog in egrep
100 do
c5061557 101 for ac_exec_ext in '' $ac_executable_extensions; do
c6cb8783 102 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
c5061557
PD
103 as_fn_executable_p "$ac_path_EGREP" || continue
104# Check for GNU ac_path_EGREP and select it if it is found.
105 # Check for GNU $ac_path_EGREP
106case `"$ac_path_EGREP" --version 2>&1` in
107*GNU*)
108 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
109*)
110 ac_count=0
c6cb8783 111 printf %s 0123456789 >"conftest.in"
c5061557
PD
112 while :
113 do
114 cat "conftest.in" "conftest.in" >"conftest.tmp"
115 mv "conftest.tmp" "conftest.in"
116 cp "conftest.in" "conftest.nl"
c6cb8783 117 printf "%s\n" 'EGREP' >> "conftest.nl"
c5061557
PD
118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
120 as_fn_arith $ac_count + 1 && ac_count=$as_val
121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
122 # Best one so far, save it but keep looking for a better one
123 ac_cv_path_EGREP="$ac_path_EGREP"
124 ac_path_EGREP_max=$ac_count
125 fi
126 # 10*(2^10) chars as input seems more than enough
127 test $ac_count -gt 10 && break
128 done
129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
130esac
131
132 $ac_path_EGREP_found && break 3
133 done
134 done
135 done
136IFS=$as_save_IFS
137 if test -z "$ac_cv_path_EGREP"; then
138 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
139 fi
140else
141 ac_cv_path_EGREP=$EGREP
142fi
143
144 fi
145fi
c6cb8783
SP
146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
147printf "%s\n" "$ac_cv_path_EGREP" >&6; }
c5061557
PD
148 EGREP="$ac_cv_path_EGREP"
149
150
151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
152/* end confdefs.h. */
153__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
154
155_ACEOF
156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c6cb8783
SP
157 $EGREP "4 8 8" >/dev/null 2>&1
158then :
c5061557
PD
159 libc_cv_riscv_int_abi=lp64
160fi
c6cb8783 161rm -rf conftest*
c5061557 162
72dfddef
ZL
163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
164/* end confdefs.h. */
165__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
166
167_ACEOF
168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c6cb8783
SP
169 $EGREP "4 4 4" >/dev/null 2>&1
170then :
72dfddef
ZL
171 libc_cv_riscv_int_abi=ilp32
172fi
c6cb8783 173rm -rf conftest*
72dfddef 174
c5061557
PD
175if test $libc_cv_riscv_int_abi = no; then
176 as_fn_error $? "Unable to determine integer ABI" "$LINENO" 5
177fi
178
7a55dd3f
AF
179if test $libc_cv_riscv_int_abi = ilp32; then
180 arch_minimum_kernel=5.4.0
181fi
182
c5061557
PD
183libc_cv_riscv_float_abi=no
184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
185/* end confdefs.h. */
186#ifdef __riscv_float_abi_double
187 yes
188 #endif
189
190_ACEOF
191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c6cb8783
SP
192 $EGREP "yes" >/dev/null 2>&1
193then :
c5061557
PD
194 libc_cv_riscv_float_abi=d
195fi
c6cb8783 196rm -rf conftest*
c5061557
PD
197
198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
199/* end confdefs.h. */
200#ifdef __riscv_float_abi_soft
201 yes
202 #endif
203
204_ACEOF
205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c6cb8783
SP
206 $EGREP "yes" >/dev/null 2>&1
207then :
c5061557
PD
208 libc_cv_riscv_float_abi=
209fi
c6cb8783 210rm -rf conftest*
c5061557 211
656dd306 212if test "$libc_cv_riscv_float_abi" = no; then
c5061557
PD
213 as_fn_error $? "Unable to determine floating-point ABI" "$LINENO" 5
214fi
215
216config_vars="$config_vars
217default-abi = $libc_cv_riscv_int_abi$libc_cv_riscv_float_abi"
218
219case $libc_cv_riscv_int_abi$libc_cv_riscv_float_abi-$machine in
220lp64-riscv/rv64/*)
221 test -n "$libc_cv_slibdir" ||
222case "$prefix" in
223/usr | /usr/)
224 libc_cv_slibdir='/lib64/lp64'
225 libc_cv_rtlddir='/lib'
226 if test "$libdir" = '${exec_prefix}/lib'; then
227 libdir='${exec_prefix}/lib64/lp64';
228 # Locale data can be shared between 32-bit and 64-bit libraries.
229 libc_cv_complocaledir='${exec_prefix}/lib/locale'
230 fi
231 ;;
232esac
233 ;;
234lp64d-riscv/rv64/*)
235 test -n "$libc_cv_slibdir" ||
236case "$prefix" in
237/usr | /usr/)
238 libc_cv_slibdir='/lib64/lp64d'
239 libc_cv_rtlddir='/lib'
240 if test "$libdir" = '${exec_prefix}/lib'; then
241 libdir='${exec_prefix}/lib64/lp64d';
242 # Locale data can be shared between 32-bit and 64-bit libraries.
243 libc_cv_complocaledir='${exec_prefix}/lib/locale'
244 fi
245 ;;
246esac
247 ;;
72dfddef
ZL
248ilp32-riscv/rv32/*)
249 test -n "$libc_cv_slibdir" ||
250case "$prefix" in
251/usr | /usr/)
252 libc_cv_slibdir='/lib32/ilp32'
253 libc_cv_rtlddir='/lib'
254 if test "$libdir" = '${exec_prefix}/lib'; then
255 libdir='${exec_prefix}/lib32/ilp32';
256 # Locale data can be shared between 32-bit and 64-bit libraries.
257 libc_cv_complocaledir='${exec_prefix}/lib/locale'
258 fi
259 ;;
260esac
261 ;;
262ilp32d-riscv/rv32/*)
263 test -n "$libc_cv_slibdir" ||
264case "$prefix" in
265/usr | /usr/)
266 libc_cv_slibdir='/lib32/ilp32d'
267 libc_cv_rtlddir='/lib'
268 if test "$libdir" = '${exec_prefix}/lib'; then
269 libdir='${exec_prefix}/lib32/ilp32d';
270 # Locale data can be shared between 32-bit and 64-bit libraries.
271 libc_cv_complocaledir='${exec_prefix}/lib/locale'
272 fi
273 ;;
274esac
275 ;;
c5061557
PD
276esac
277
278ldd_rewrite_script=sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed
c6cb8783 279