2 # as_fn_set_status STATUS
3 # -----------------------
4 # Set $? to STATUS, without forking.
12 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21 # Perform arithmetic evaluation on the ARGs, and store the result in the
22 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23 # must be portable across $(()) and expr.
24 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32 as_val=`expr "$@" || test $? -eq 1`
36 if expr a : '\(a\)' >/dev/null 2>&1 &&
37 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49 as_me=`$as_basename -- "$0" ||
50 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51 X"$0" : 'X\(//\)$' \| \
52 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54 sed '/^.*\/\([^/][^/]*\)\/*$/{
69 as_lineno_1=$LINENO as_lineno_1a=$LINENO
70 as_lineno_2=$LINENO as_lineno_2a=$LINENO
71 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
72 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
73 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
85 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
89 chmod +x "$as_me.lineno" ||
90 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
92 # Don't try to exec as it changes $[0], causing all sort of problems
93 # (the dirname of $[0] is not the place where we might find the
94 # original and so on. Autoconf is especially sensitive to this).
96 # Exit status is that of the last command.
100 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
101 # Local configure fragment for sysdeps/arm.
103 # Check for support of thread-local storage handling in assembler and
105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM TLS support" >&5
106 $as_echo_n "checking for ARM TLS support... " >&6; }
107 if ${libc_cv_arm_tls+:} false; then :
108 $as_echo_n "(cached) " >&6
110 cat > conftest.s <<\EOF
111 .section ".tdata", "awT", %progbits
114 .section ".tbss", "awT", %nobits
121 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
126 test $ac_status = 0; }; }; then
133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tls" >&5
134 $as_echo "$libc_cv_arm_tls" >&6; }
135 if test $libc_cv_arm_tls = no; then
136 as_fn_error $? "the assembler must support TLS" "$LINENO" 5
139 #AC_DEFINE(PI_STATIC_AND_HIDDEN)
141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CFI directive .cfi_sections is supported" >&5
142 $as_echo_n "checking whether the CFI directive .cfi_sections is supported... " >&6; }
143 if ${libc_cv_asm_cfi_directive_sections+:} false; then :
144 $as_echo_n "(cached) " >&6
146 cat > conftest.s <<EOF
148 .cfi_sections .debug_frame, .eh_frame
152 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
157 test $ac_status = 0; }; }; then
158 libc_cv_asm_cfi_directive_sections=yes
160 libc_cv_asm_cfi_directive_sections=no
164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directive_sections" >&5
165 $as_echo "$libc_cv_asm_cfi_directive_sections" >&6; }
166 if test $libc_cv_asm_cfi_directive_sections != yes; then
167 as_fn_error $? "need .cfi_sections in this configuration" "$LINENO" 5
170 # We check to see if the compiler and flags are
171 # selecting the hard-float ABI and if they are then
172 # we set libc_cv_arm_pcs_vfp to yes which causes
173 # HAVE_ARM_PCS_VFP to be defined in config.h and
174 # in include/libc-symbols.h and thus available to
175 # shlib-versions to select the appropriate name for
176 # the dynamic linker via %ifdef.
179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
180 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
181 if ${ac_cv_path_GREP+:} false; then :
182 $as_echo_n "(cached) " >&6
184 if test -z "$GREP"; then
185 ac_path_GREP_found=false
186 # Loop through the user's path and test for each of PROGNAME-LIST
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
191 test -z "$as_dir" && as_dir=.
192 for ac_prog in grep ggrep; do
193 for ac_exec_ext in '' $ac_executable_extensions; do
194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
196 # Check for GNU ac_path_GREP and select it if it is found.
197 # Check for GNU $ac_path_GREP
198 case `"$ac_path_GREP" --version 2>&1` in
200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
203 $as_echo_n 0123456789 >"conftest.in"
206 cat "conftest.in" "conftest.in" >"conftest.tmp"
207 mv "conftest.tmp" "conftest.in"
208 cp "conftest.in" "conftest.nl"
209 $as_echo 'GREP' >> "conftest.nl"
210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
212 as_fn_arith $ac_count + 1 && ac_count=$as_val
213 if test $ac_count -gt ${ac_path_GREP_max-0}; then
214 # Best one so far, save it but keep looking for a better one
215 ac_cv_path_GREP="$ac_path_GREP"
216 ac_path_GREP_max=$ac_count
218 # 10*(2^10) chars as input seems more than enough
219 test $ac_count -gt 10 && break
221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
224 $ac_path_GREP_found && break 3
229 if test -z "$ac_cv_path_GREP"; then
230 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
233 ac_cv_path_GREP=$GREP
237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
238 $as_echo "$ac_cv_path_GREP" >&6; }
239 GREP="$ac_cv_path_GREP"
242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
243 $as_echo_n "checking for egrep... " >&6; }
244 if ${ac_cv_path_EGREP+:} false; then :
245 $as_echo_n "(cached) " >&6
247 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
248 then ac_cv_path_EGREP="$GREP -E"
250 if test -z "$EGREP"; then
251 ac_path_EGREP_found=false
252 # Loop through the user's path and test for each of PROGNAME-LIST
253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
257 test -z "$as_dir" && as_dir=.
258 for ac_prog in egrep; do
259 for ac_exec_ext in '' $ac_executable_extensions; do
260 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
261 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
262 # Check for GNU ac_path_EGREP and select it if it is found.
263 # Check for GNU $ac_path_EGREP
264 case `"$ac_path_EGREP" --version 2>&1` in
266 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
269 $as_echo_n 0123456789 >"conftest.in"
272 cat "conftest.in" "conftest.in" >"conftest.tmp"
273 mv "conftest.tmp" "conftest.in"
274 cp "conftest.in" "conftest.nl"
275 $as_echo 'EGREP' >> "conftest.nl"
276 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
278 as_fn_arith $ac_count + 1 && ac_count=$as_val
279 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
280 # Best one so far, save it but keep looking for a better one
281 ac_cv_path_EGREP="$ac_path_EGREP"
282 ac_path_EGREP_max=$ac_count
284 # 10*(2^10) chars as input seems more than enough
285 test $ac_count -gt 10 && break
287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
290 $ac_path_EGREP_found && break 3
295 if test -z "$ac_cv_path_EGREP"; then
296 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
299 ac_cv_path_EGREP=$EGREP
304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
305 $as_echo "$ac_cv_path_EGREP" >&6; }
306 EGREP="$ac_cv_path_EGREP"
309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5
310 $as_echo_n "checking whether the compiler is using the ARM hard-float ABI... " >&6; }
311 if ${libc_cv_arm_pcs_vfp+:} false; then :
312 $as_echo_n "(cached) " >&6
314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
315 /* end confdefs.h. */
321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
322 $EGREP "yes" >/dev/null 2>&1; then :
323 libc_cv_arm_pcs_vfp=yes
325 libc_cv_arm_pcs_vfp=no
330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5
331 $as_echo "$libc_cv_arm_pcs_vfp" >&6; }
332 if test $libc_cv_arm_pcs_vfp = yes; then
333 $as_echo "#define HAVE_ARM_PCS_VFP 1" >>confdefs.h