]> git.ipfire.org Git - thirdparty/glibc.git/blob - ports/sysdeps/arm/armv7/configure
rename configure.in to configure.ac
[thirdparty/glibc.git] / ports / sysdeps / arm / armv7 / configure
1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/arm/armv7.
3
4 # We need binutils 2.21 to ensure that NEON alignments are assembled correctly.
5 libc_cv_arm_as_version_ok=yes
6 for ac_prog in $AS
7 do
8 # Extract the first word of "$ac_prog", so it can be a program name with args.
9 set dummy $ac_prog; ac_word=$2
10 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11 $as_echo_n "checking for $ac_word... " >&6; }
12 if ${ac_cv_prog_AS+:} false; then :
13 $as_echo_n "(cached) " >&6
14 else
15 if test -n "$AS"; then
16 ac_cv_prog_AS="$AS" # Let the user override the test.
17 else
18 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19 for as_dir in $PATH
20 do
21 IFS=$as_save_IFS
22 test -z "$as_dir" && as_dir=.
23 for ac_exec_ext in '' $ac_executable_extensions; do
24 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25 ac_cv_prog_AS="$ac_prog"
26 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27 break 2
28 fi
29 done
30 done
31 IFS=$as_save_IFS
32
33 fi
34 fi
35 AS=$ac_cv_prog_AS
36 if test -n "$AS"; then
37 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
38 $as_echo "$AS" >&6; }
39 else
40 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41 $as_echo "no" >&6; }
42 fi
43
44
45 test -n "$AS" && break
46 done
47
48 if test -z "$AS"; then
49 ac_verc_fail=yes
50 else
51 # Found it, now check the version.
52 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
53 $as_echo_n "checking version of $AS... " >&6; }
54 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
55 case $ac_prog_version in
56 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
57 2.1[0-9][0-9]*|2.2[1-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
58 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
59 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
60
61 esac
62 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
63 $as_echo "$ac_prog_version" >&6; }
64 fi
65 if test $ac_verc_fail = yes; then
66 libc_cv_arm_as_version_ok=no
67 fi
68
69
70 if test $libc_cv_arm_as_version_ok != yes; then
71 as_fn_error $? "as version too old, at least 2.21 is required" "$LINENO" 5
72 fi