1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix/sysv/linux/powerpc/powerpc64/.
4 test -n "$libc_cv_slibdir" ||
9 if test "$libdir" = '${exec_prefix}/lib'; then
10 libdir='${exec_prefix}/lib64';
11 # Locale data can be shared between 32-bit and 64-bit libraries.
12 libc_cv_complocaledir='${exec_prefix}/lib/locale'
17 # Define default-abi according to compiler flags.
20 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
21 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22 if ${ac_cv_path_GREP+:} false; then :
23 $as_echo_n "(cached) " >&6
25 if test -z "$GREP"; then
26 ac_path_GREP_found=false
27 # Loop through the user's path and test for each of PROGNAME-LIST
28 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32 test -z "$as_dir" && as_dir=.
33 for ac_prog in grep ggrep; do
34 for ac_exec_ext in '' $ac_executable_extensions; do
35 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
36 as_fn_executable_p "$ac_path_GREP" || continue
37 # Check for GNU ac_path_GREP and select it if it is found.
38 # Check for GNU $ac_path_GREP
39 case `"$ac_path_GREP" --version 2>&1` in
41 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
44 $as_echo_n 0123456789 >"conftest.in"
47 cat "conftest.in" "conftest.in" >"conftest.tmp"
48 mv "conftest.tmp" "conftest.in"
49 cp "conftest.in" "conftest.nl"
50 $as_echo 'GREP' >> "conftest.nl"
51 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
52 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
53 as_fn_arith $ac_count + 1 && ac_count=$as_val
54 if test $ac_count -gt ${ac_path_GREP_max-0}; then
55 # Best one so far, save it but keep looking for a better one
56 ac_cv_path_GREP="$ac_path_GREP"
57 ac_path_GREP_max=$ac_count
59 # 10*(2^10) chars as input seems more than enough
60 test $ac_count -gt 10 && break
62 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
65 $ac_path_GREP_found && break 3
70 if test -z "$ac_cv_path_GREP"; then
71 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
78 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
79 $as_echo "$ac_cv_path_GREP" >&6; }
80 GREP="$ac_cv_path_GREP"
83 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
84 $as_echo_n "checking for egrep... " >&6; }
85 if ${ac_cv_path_EGREP+:} false; then :
86 $as_echo_n "(cached) " >&6
88 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
89 then ac_cv_path_EGREP="$GREP -E"
91 if test -z "$EGREP"; then
92 ac_path_EGREP_found=false
93 # Loop through the user's path and test for each of PROGNAME-LIST
94 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
98 test -z "$as_dir" && as_dir=.
99 for ac_prog in egrep; do
100 for ac_exec_ext in '' $ac_executable_extensions; do
101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
102 as_fn_executable_p "$ac_path_EGREP" || continue
103 # Check for GNU ac_path_EGREP and select it if it is found.
104 # Check for GNU $ac_path_EGREP
105 case `"$ac_path_EGREP" --version 2>&1` in
107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
110 $as_echo_n 0123456789 >"conftest.in"
113 cat "conftest.in" "conftest.in" >"conftest.tmp"
114 mv "conftest.tmp" "conftest.in"
115 cp "conftest.in" "conftest.nl"
116 $as_echo 'EGREP' >> "conftest.nl"
117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
119 as_fn_arith $ac_count + 1 && ac_count=$as_val
120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
121 # Best one so far, save it but keep looking for a better one
122 ac_cv_path_EGREP="$ac_path_EGREP"
123 ac_path_EGREP_max=$ac_count
125 # 10*(2^10) chars as input seems more than enough
126 test $ac_count -gt 10 && break
128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
131 $ac_path_EGREP_found && break 3
136 if test -z "$ac_cv_path_EGREP"; then
137 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
140 ac_cv_path_EGREP=$EGREP
145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
146 $as_echo "$ac_cv_path_EGREP" >&6; }
147 EGREP="$ac_cv_path_EGREP"
150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the PowerPC64 ELFv2 ABI" >&5
151 $as_echo_n "checking whether the compiler is using the PowerPC64 ELFv2 ABI... " >&6; }
152 if ${libc_cv_ppc64_elfv2_abi+:} false; then :
153 $as_echo_n "(cached) " >&6
155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
156 /* end confdefs.h. */
162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
163 $EGREP "yes" >/dev/null 2>&1; then :
164 libc_cv_ppc64_elfv2_abi=yes
166 libc_cv_ppc64_elfv2_abi=no
171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_elfv2_abi" >&5
172 $as_echo "$libc_cv_ppc64_elfv2_abi" >&6; }
173 if test $libc_cv_ppc64_elfv2_abi = yes; then
174 config_vars="$config_vars
176 # For shlib-versions.
177 $as_echo "#define HAVE_ELFV2_ABI 1" >>confdefs.h
180 config_vars="$config_vars
182 # Compiler that do not support ELFv2 ABI does not define _CALL_ELF
183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines _CALL_ELF" >&5
184 $as_echo_n "checking whether the compiler defines _CALL_ELF... " >&6; }
185 if ${libc_cv_ppc64_def_call_elf+:} false; then :
186 $as_echo_n "(cached) " >&6
188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
189 /* end confdefs.h. */
195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
196 $EGREP "yes" >/dev/null 2>&1; then :
197 libc_cv_ppc64_def_call_elf=yes
199 libc_cv_ppc64_def_call_elf=no
204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_def_call_elf" >&5
205 $as_echo "$libc_cv_ppc64_def_call_elf" >&6; }
206 if test $libc_cv_ppc64_def_call_elf = no; then
207 libc_extra_cppflags="$libc_extra_cppflags -D_CALL_ELF=1"
210 # Set minimum kernel version for ppc64le.
211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine type to set minimum kernel version" >&5
212 $as_echo_n "checking the machine type to set minimum kernel version... " >&6; }
213 if ${libc_cv_ppc64_le+:} false; then :
214 $as_echo_n "(cached) " >&6
216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
217 /* end confdefs.h. */
218 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
224 $EGREP "yes" >/dev/null 2>&1; then :
225 arch_minimum_kernel=3.10.0
232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5
233 $as_echo "$libc_cv_ppc64_le" >&6; }