]> git.ipfire.org Git - thirdparty/glibc.git/blame - ports/sysdeps/arm/configure
Move all files into ports/ subdirectory in preparation for merge with glibc
[thirdparty/glibc.git] / ports / sysdeps / arm / configure
CommitLineData
9ec5b261
JM
1
2# as_fn_set_status STATUS
3# -----------------------
4# Set $? to STATUS, without forking.
5as_fn_set_status ()
6{
7 return $1
8} # as_fn_set_status
9
10# as_fn_exit STATUS
11# -----------------
12# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13as_fn_exit ()
14{
15 set +e
16 as_fn_set_status $1
17 exit $1
18} # as_fn_exit
d3b36017
CD
19# as_fn_arith ARG...
20# ------------------
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.
24if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25 eval 'as_fn_arith ()
26 {
27 as_val=$(( $* ))
28 }'
29else
30 as_fn_arith ()
31 {
32 as_val=`expr "$@" || test $? -eq 1`
33 }
34fi # as_fn_arith
35
9ec5b261
JM
36if expr a : '\(a\)' >/dev/null 2>&1 &&
37 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38 as_expr=expr
39else
40 as_expr=false
41fi
42
43if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44 as_basename=basename
45else
46 as_basename=false
47fi
48
49as_me=`$as_basename -- "$0" ||
50$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51 X"$0" : 'X\(//\)$' \| \
52 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53$as_echo X/"$0" |
54 sed '/^.*\/\([^/][^/]*\)\/*$/{
55 s//\1/
56 q
57 }
58 /^X\/\(\/\/\)$/{
59 s//\1/
60 q
61 }
62 /^X\/\(\/\).*/{
63 s//\1/
64 q
65 }
66 s/.*/./; q'`
67
68
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. :-)
74 sed -n '
75 p
76 /[$]LINENO/=
77 ' <$as_myself |
78 sed '
79 s/[$]LINENO.*/&-/
80 t lineno
81 b
82 :lineno
83 N
84 :loop
85 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
86 t loop
87 s/-\n.*//
88 ' >$as_me.lineno &&
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; }
91
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).
95 . "./$as_me.lineno"
96 # Exit status is that of the last command.
97 exit
98}
99
01b32e73
TS
100# This file is generated from configure.in by Autoconf. DO NOT EDIT!
101 # Local configure fragment for sysdeps/arm.
102
9ec5b261
JM
103# Check for support of thread-local storage handling in assembler and
104# linker.
105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM TLS support" >&5
106$as_echo_n "checking for ARM TLS support... " >&6; }
107if ${libc_cv_arm_tls+:} false; then :
108 $as_echo_n "(cached) " >&6
109else
110 cat > conftest.s <<\EOF
111 .section ".tdata", "awT", %progbits
112 .globl foo
113foo: .long 1
114 .section ".tbss", "awT", %nobits
115 .globl bar
116bar: .skip 4
117 .text
118.word foo(tpoff)
119.word foo(tlsgd)
120EOF
121if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
123 (eval $ac_try) 2>&5
124 ac_status=$?
125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
126 test $ac_status = 0; }; }; then
127 libc_cv_arm_tls=yes
128else
129 libc_cv_arm_tls=no
130fi
131rm -f conftest*
132fi
133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tls" >&5
134$as_echo "$libc_cv_arm_tls" >&6; }
135if test $libc_cv_arm_tls = no; then
136 as_fn_error $? "the assembler must support TLS" "$LINENO" 5
137fi
138
139#AC_DEFINE(PI_STATIC_AND_HIDDEN)
140
141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CFI directive .cfi_sections is supported" >&5
01b32e73 142$as_echo_n "checking whether the CFI directive .cfi_sections is supported... " >&6; }
9ec5b261 143if ${libc_cv_asm_cfi_directive_sections+:} false; then :
01b32e73
TS
144 $as_echo_n "(cached) " >&6
145else
146 cat > conftest.s <<EOF
147 .text
148 .cfi_sections .debug_frame, .eh_frame
149 .cfi_startproc
150 .cfi_endproc
151EOF
152 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
9ec5b261 153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
01b32e73
TS
154 (eval $ac_try) 2>&5
155 ac_status=$?
9ec5b261
JM
156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
157 test $ac_status = 0; }; }; then
01b32e73
TS
158 libc_cv_asm_cfi_directive_sections=yes
159 else
160 libc_cv_asm_cfi_directive_sections=no
161 fi
162 rm -f conftest*
163fi
9ec5b261 164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directive_sections" >&5
01b32e73
TS
165$as_echo "$libc_cv_asm_cfi_directive_sections" >&6; }
166if test $libc_cv_asm_cfi_directive_sections != yes; then
9ec5b261 167 as_fn_error $? "need .cfi_sections in this configuration" "$LINENO" 5
01b32e73 168fi
d3b36017
CD
169
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.
177
178
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; }
181if ${ac_cv_path_GREP+:} false; then :
182 $as_echo_n "(cached) " >&6
183else
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
188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
189do
190 IFS=$as_save_IFS
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
198case `"$ac_path_GREP" --version 2>&1` in
199*GNU*)
200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
201*)
202 ac_count=0
203 $as_echo_n 0123456789 >"conftest.in"
204 while :
205 do
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
217 fi
218 # 10*(2^10) chars as input seems more than enough
219 test $ac_count -gt 10 && break
220 done
221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
222esac
223
224 $ac_path_GREP_found && break 3
225 done
226 done
227 done
228IFS=$as_save_IFS
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
231 fi
232else
233 ac_cv_path_GREP=$GREP
234fi
235
236fi
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"
240
241
242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
243$as_echo_n "checking for egrep... " >&6; }
244if ${ac_cv_path_EGREP+:} false; then :
245 $as_echo_n "(cached) " >&6
246else
247 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
248 then ac_cv_path_EGREP="$GREP -E"
249 else
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
254for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
255do
256 IFS=$as_save_IFS
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
264case `"$ac_path_EGREP" --version 2>&1` in
265*GNU*)
266 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
267*)
268 ac_count=0
269 $as_echo_n 0123456789 >"conftest.in"
270 while :
271 do
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
283 fi
284 # 10*(2^10) chars as input seems more than enough
285 test $ac_count -gt 10 && break
286 done
287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
288esac
289
290 $ac_path_EGREP_found && break 3
291 done
292 done
293 done
294IFS=$as_save_IFS
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
297 fi
298else
299 ac_cv_path_EGREP=$EGREP
300fi
301
302 fi
303fi
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"
307
308
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; }
311if ${libc_cv_arm_pcs_vfp+:} false; then :
312 $as_echo_n "(cached) " >&6
313else
314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
315/* end confdefs.h. */
316#ifdef __ARM_PCS_VFP
317 yes
318 #endif
319
320_ACEOF
321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
322 $EGREP "yes" >/dev/null 2>&1; then :
323 libc_cv_arm_pcs_vfp=yes
324else
325 libc_cv_arm_pcs_vfp=no
326fi
327rm -f conftest*
328
329fi
330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5
331$as_echo "$libc_cv_arm_pcs_vfp" >&6; }
332if test $libc_cv_arm_pcs_vfp = yes; then
333 $as_echo "#define HAVE_ARM_PCS_VFP 1" >>confdefs.h
334
335fi