1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix/sysv/linux/mips.
5 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8 #if (_MIPS_SIM != _ABIO32)
19 if ac_fn_c_try_compile "$LINENO"; then :
22 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25 #if (_MIPS_SIM != _ABIN32)
36 if ac_fn_c_try_compile "$LINENO"; then :
39 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42 #if (_MIPS_SIM != _ABI64)
53 if ac_fn_c_try_compile "$LINENO"; then :
56 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62 if test -z "$libc_mips_abi"; then
63 as_fn_error $? "could not determine what ABI the compiler is using" "$LINENO" 5
66 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69 #if !defined(__mips_soft_float)
80 if ac_fn_c_try_compile "$LINENO"; then :
83 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86 #if !defined(__mips_hard_float)
97 if ac_fn_c_try_compile "$LINENO"; then :
100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104 if test -z "$libc_mips_float"; then
105 as_fn_error $? "could not determine if compiler is using hard or soft floating point ABI" "$LINENO" 5
109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
111 if ${ac_cv_path_GREP+:} false; then :
112 $as_echo_n "(cached) " >&6
114 if test -z "$GREP"; then
115 ac_path_GREP_found=false
116 # Loop through the user's path and test for each of PROGNAME-LIST
117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
121 test -z "$as_dir" && as_dir=.
122 for ac_prog in grep ggrep; do
123 for ac_exec_ext in '' $ac_executable_extensions; do
124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
126 # Check for GNU ac_path_GREP and select it if it is found.
127 # Check for GNU $ac_path_GREP
128 case `"$ac_path_GREP" --version 2>&1` in
130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
133 $as_echo_n 0123456789 >"conftest.in"
136 cat "conftest.in" "conftest.in" >"conftest.tmp"
137 mv "conftest.tmp" "conftest.in"
138 cp "conftest.in" "conftest.nl"
139 $as_echo 'GREP' >> "conftest.nl"
140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
142 as_fn_arith $ac_count + 1 && ac_count=$as_val
143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
144 # Best one so far, save it but keep looking for a better one
145 ac_cv_path_GREP="$ac_path_GREP"
146 ac_path_GREP_max=$ac_count
148 # 10*(2^10) chars as input seems more than enough
149 test $ac_count -gt 10 && break
151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
154 $ac_path_GREP_found && break 3
159 if test -z "$ac_cv_path_GREP"; then
160 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
163 ac_cv_path_GREP=$GREP
167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
168 $as_echo "$ac_cv_path_GREP" >&6; }
169 GREP="$ac_cv_path_GREP"
172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
173 $as_echo_n "checking for egrep... " >&6; }
174 if ${ac_cv_path_EGREP+:} false; then :
175 $as_echo_n "(cached) " >&6
177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
178 then ac_cv_path_EGREP="$GREP -E"
180 if test -z "$EGREP"; then
181 ac_path_EGREP_found=false
182 # Loop through the user's path and test for each of PROGNAME-LIST
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
187 test -z "$as_dir" && as_dir=.
188 for ac_prog in egrep; do
189 for ac_exec_ext in '' $ac_executable_extensions; do
190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
192 # Check for GNU ac_path_EGREP and select it if it is found.
193 # Check for GNU $ac_path_EGREP
194 case `"$ac_path_EGREP" --version 2>&1` in
196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
199 $as_echo_n 0123456789 >"conftest.in"
202 cat "conftest.in" "conftest.in" >"conftest.tmp"
203 mv "conftest.tmp" "conftest.in"
204 cp "conftest.in" "conftest.nl"
205 $as_echo 'EGREP' >> "conftest.nl"
206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
208 as_fn_arith $ac_count + 1 && ac_count=$as_val
209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
210 # Best one so far, save it but keep looking for a better one
211 ac_cv_path_EGREP="$ac_path_EGREP"
212 ac_path_EGREP_max=$ac_count
214 # 10*(2^10) chars as input seems more than enough
215 test $ac_count -gt 10 && break
217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
220 $ac_path_EGREP_found && break 3
225 if test -z "$ac_cv_path_EGREP"; then
226 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
229 ac_cv_path_EGREP=$EGREP
234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
235 $as_echo "$ac_cv_path_EGREP" >&6; }
236 EGREP="$ac_cv_path_EGREP"
239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5
240 $as_echo_n "checking whether the compiler is using the 2008 NaN encoding... " >&6; }
241 if ${libc_cv_mips_nan2008+:} false; then :
242 $as_echo_n "(cached) " >&6
244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
245 /* end confdefs.h. */
247 #ifdef __mips_nan2008
251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
252 $EGREP "yes" >/dev/null 2>&1; then :
253 libc_cv_mips_nan2008=yes
255 libc_cv_mips_nan2008=no
260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5
261 $as_echo "$libc_cv_mips_nan2008" >&6; }
264 if test x"$libc_cv_mips_nan2008" = xyes; then
268 config_vars="$config_vars
269 default-abi = ${libc_mips_abi}_${libc_mips_float}${libc_mips_nan}"
273 test -n "$libc_cv_slibdir" ||
276 libc_cv_slibdir=/lib64
277 libc_cv_rtlddir=/lib64
278 if test "$libdir" = '${exec_prefix}/lib'; then
279 libdir='${exec_prefix}/lib64';
280 # Locale data can be shared between 32-bit and 64-bit libraries.
281 libc_cv_localedir='${exec_prefix}/lib/locale'
287 test -n "$libc_cv_slibdir" ||
290 libc_cv_slibdir=/lib32
291 libc_cv_rtlddir=/lib32
292 if test "$libdir" = '${exec_prefix}/lib'; then
293 libdir='${exec_prefix}/lib32';
294 # Locale data can be shared between 32-bit and 64-bit libraries.
295 libc_cv_localedir='${exec_prefix}/lib/locale'
302 libc_cv_gcc_unwind_find_fde=yes
304 if test -z "$arch_minimum_kernel"; then
305 if test x$libc_cv_mips_nan2008 = xyes; then
306 # FIXME: Adjust this setting to the actual first upstream kernel
307 # version to support the 2008 NaN encoding and then remove this
309 arch_minimum_kernel=10.0.0