1# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix/sysv/linux/powerpc/powerpc64/.
3
4test -n "$libc_cv_slibdir" ||
5case "$prefix" in
6/usr | /usr/)
7  libc_cv_slibdir='/lib64'
8  libc_cv_rtlddir='/lib64'
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'
13  fi
14  ;;
15esac
16
17# Define default-abi according to compiler flags.
18
19
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; }
22if ${ac_cv_path_GREP+:} false; then :
23  $as_echo_n "(cached) " >&6
24else
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
29for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
30do
31  IFS=$as_save_IFS
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
39case `"$ac_path_GREP" --version 2>&1` in
40*GNU*)
41  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
42*)
43  ac_count=0
44  $as_echo_n 0123456789 >"conftest.in"
45  while :
46  do
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
58    fi
59    # 10*(2^10) chars as input seems more than enough
60    test $ac_count -gt 10 && break
61  done
62  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
63esac
64
65      $ac_path_GREP_found && break 3
66    done
67  done
68  done
69IFS=$as_save_IFS
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
72  fi
73else
74  ac_cv_path_GREP=$GREP
75fi
76
77fi
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"
81
82
83{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
84$as_echo_n "checking for egrep... " >&6; }
85if ${ac_cv_path_EGREP+:} false; then :
86  $as_echo_n "(cached) " >&6
87else
88  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
89   then ac_cv_path_EGREP="$GREP -E"
90   else
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
95for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96do
97  IFS=$as_save_IFS
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
105case `"$ac_path_EGREP" --version 2>&1` in
106*GNU*)
107  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
108*)
109  ac_count=0
110  $as_echo_n 0123456789 >"conftest.in"
111  while :
112  do
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
124    fi
125    # 10*(2^10) chars as input seems more than enough
126    test $ac_count -gt 10 && break
127  done
128  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
129esac
130
131      $ac_path_EGREP_found && break 3
132    done
133  done
134  done
135IFS=$as_save_IFS
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
138  fi
139else
140  ac_cv_path_EGREP=$EGREP
141fi
142
143   fi
144fi
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"
148
149
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; }
152if ${libc_cv_ppc64_elfv2_abi+:} false; then :
153  $as_echo_n "(cached) " >&6
154else
155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
156/* end confdefs.h.  */
157#if _CALL_ELF == 2
158                      yes
159                     #endif
160
161_ACEOF
162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
163  $EGREP "yes" >/dev/null 2>&1; then :
164  libc_cv_ppc64_elfv2_abi=yes
165else
166  libc_cv_ppc64_elfv2_abi=no
167fi
168rm -f conftest*
169
170fi
171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_elfv2_abi" >&5
172$as_echo "$libc_cv_ppc64_elfv2_abi" >&6; }
173if test $libc_cv_ppc64_elfv2_abi = yes; then
174  config_vars="$config_vars
175default-abi = 64-v2"
176  # For shlib-versions.
177  $as_echo "#define HAVE_ELFV2_ABI 1" >>confdefs.h
178
179else
180  config_vars="$config_vars
181default-abi = 64-v1"
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; }
185if ${libc_cv_ppc64_def_call_elf+:} false; then :
186  $as_echo_n "(cached) " >&6
187else
188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
189/* end confdefs.h.  */
190#ifdef _CALL_ELF
191                         yes
192                       #endif
193
194_ACEOF
195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
196  $EGREP "yes" >/dev/null 2>&1; then :
197  libc_cv_ppc64_def_call_elf=yes
198else
199  libc_cv_ppc64_def_call_elf=no
200fi
201rm -f conftest*
202
203fi
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"
208  fi
209fi
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; }
213if ${libc_cv_ppc64_le+:} false; then :
214  $as_echo_n "(cached) " >&6
215else
216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
217/* end confdefs.h.  */
218#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
219                      yes
220                     #endif
221
222_ACEOF
223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
224  $EGREP "yes" >/dev/null 2>&1; then :
225  arch_minimum_kernel=3.10.0
226else
227  libc_cv_ppc64_le=no
228fi
229rm -f conftest*
230
231fi
232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5
233$as_echo "$libc_cv_ppc64_le" >&6; }
234