1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/aarch64.
4 # We check to see if the compiler and flags are
5 # selecting the big endian ABI and if they are then
6 # we set libc_cv_aarch64_be to yes which causes
7 # HAVE_AARCH64_BE to be defined in config.h and
8 # in include/libc-symbols.h and thus available to
9 # shlib-versions to select the appropriate name for
10 # the dynamic linker via %ifdef.
13 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
14 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
15 if ${ac_cv_path_GREP+:} false; then :
16 $as_echo_n "(cached) " >&6
18 if test -z "$GREP"; then
19 ac_path_GREP_found=false
20 # Loop through the user's path and test for each of PROGNAME-LIST
21 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
25 test -z "$as_dir" && as_dir=.
26 for ac_prog in grep ggrep; do
27 for ac_exec_ext in '' $ac_executable_extensions; do
28 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
29 as_fn_executable_p "$ac_path_GREP" || continue
30 # Check for GNU ac_path_GREP and select it if it is found.
31 # Check for GNU $ac_path_GREP
32 case `"$ac_path_GREP" --version 2>&1` in
34 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
37 $as_echo_n 0123456789 >"conftest.in"
40 cat "conftest.in" "conftest.in" >"conftest.tmp"
41 mv "conftest.tmp" "conftest.in"
42 cp "conftest.in" "conftest.nl"
43 $as_echo 'GREP' >> "conftest.nl"
44 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
45 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46 as_fn_arith $ac_count + 1 && ac_count=$as_val
47 if test $ac_count -gt ${ac_path_GREP_max-0}; then
48 # Best one so far, save it but keep looking for a better one
49 ac_cv_path_GREP="$ac_path_GREP"
50 ac_path_GREP_max=$ac_count
52 # 10*(2^10) chars as input seems more than enough
53 test $ac_count -gt 10 && break
55 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
58 $ac_path_GREP_found && break 3
63 if test -z "$ac_cv_path_GREP"; then
64 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
71 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
72 $as_echo "$ac_cv_path_GREP" >&6; }
73 GREP="$ac_cv_path_GREP"
76 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
77 $as_echo_n "checking for egrep... " >&6; }
78 if ${ac_cv_path_EGREP+:} false; then :
79 $as_echo_n "(cached) " >&6
81 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
82 then ac_cv_path_EGREP="$GREP -E"
84 if test -z "$EGREP"; then
85 ac_path_EGREP_found=false
86 # Loop through the user's path and test for each of PROGNAME-LIST
87 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
91 test -z "$as_dir" && as_dir=.
92 for ac_prog in egrep; do
93 for ac_exec_ext in '' $ac_executable_extensions; do
94 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
95 as_fn_executable_p "$ac_path_EGREP" || continue
96 # Check for GNU ac_path_EGREP and select it if it is found.
97 # Check for GNU $ac_path_EGREP
98 case `"$ac_path_EGREP" --version 2>&1` in
100 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
103 $as_echo_n 0123456789 >"conftest.in"
106 cat "conftest.in" "conftest.in" >"conftest.tmp"
107 mv "conftest.tmp" "conftest.in"
108 cp "conftest.in" "conftest.nl"
109 $as_echo 'EGREP' >> "conftest.nl"
110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
112 as_fn_arith $ac_count + 1 && ac_count=$as_val
113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
114 # Best one so far, save it but keep looking for a better one
115 ac_cv_path_EGREP="$ac_path_EGREP"
116 ac_path_EGREP_max=$ac_count
118 # 10*(2^10) chars as input seems more than enough
119 test $ac_count -gt 10 && break
121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
124 $ac_path_EGREP_found && break 3
129 if test -z "$ac_cv_path_EGREP"; then
130 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
133 ac_cv_path_EGREP=$EGREP
138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
139 $as_echo "$ac_cv_path_EGREP" >&6; }
140 EGREP="$ac_cv_path_EGREP"
143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
144 $as_echo_n "checking for big endian... " >&6; }
145 if ${libc_cv_aarch64_be+:} false; then :
146 $as_echo_n "(cached) " >&6
148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
149 /* end confdefs.h. */
155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
156 $EGREP "yes" >/dev/null 2>&1; then :
157 libc_cv_aarch64_be=yes
159 libc_cv_aarch64_be=no
164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_be" >&5
165 $as_echo "$libc_cv_aarch64_be" >&6; }
166 if test $libc_cv_aarch64_be = yes; then
167 $as_echo "#define HAVE_AARCH64_BE 1" >>confdefs.h
169 config_vars="$config_vars
170 default-abi = lp64_be"
172 config_vars="$config_vars