Update copyright dates with scripts/update-copyrights
[glibc.git] / sysdeps / sh / preconfigure
blob078fb48b0ff59b06b9385736cb72ce863efcde06
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local preconfigure fragment for sysdeps/sh
6 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8 if ${ac_cv_path_GREP+:} false; then :
9   $as_echo_n "(cached) " >&6
10 else
11   if test -z "$GREP"; then
12   ac_path_GREP_found=false
13   # Loop through the user's path and test for each of PROGNAME-LIST
14   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17   IFS=$as_save_IFS
18   test -z "$as_dir" && as_dir=.
19     for ac_prog in grep ggrep; do
20     for ac_exec_ext in '' $ac_executable_extensions; do
21       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22       as_fn_executable_p "$ac_path_GREP" || continue
23 # Check for GNU ac_path_GREP and select it if it is found.
24   # Check for GNU $ac_path_GREP
25 case `"$ac_path_GREP" --version 2>&1` in
26 *GNU*)
27   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
29   ac_count=0
30   $as_echo_n 0123456789 >"conftest.in"
31   while :
32   do
33     cat "conftest.in" "conftest.in" >"conftest.tmp"
34     mv "conftest.tmp" "conftest.in"
35     cp "conftest.in" "conftest.nl"
36     $as_echo 'GREP' >> "conftest.nl"
37     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39     as_fn_arith $ac_count + 1 && ac_count=$as_val
40     if test $ac_count -gt ${ac_path_GREP_max-0}; then
41       # Best one so far, save it but keep looking for a better one
42       ac_cv_path_GREP="$ac_path_GREP"
43       ac_path_GREP_max=$ac_count
44     fi
45     # 10*(2^10) chars as input seems more than enough
46     test $ac_count -gt 10 && break
47   done
48   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
49 esac
51       $ac_path_GREP_found && break 3
52     done
53   done
54   done
55 IFS=$as_save_IFS
56   if test -z "$ac_cv_path_GREP"; then
57     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
58   fi
59 else
60   ac_cv_path_GREP=$GREP
64 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
65 $as_echo "$ac_cv_path_GREP" >&6; }
66  GREP="$ac_cv_path_GREP"
69 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
70 $as_echo_n "checking for egrep... " >&6; }
71 if ${ac_cv_path_EGREP+:} false; then :
72   $as_echo_n "(cached) " >&6
73 else
74   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
75    then ac_cv_path_EGREP="$GREP -E"
76    else
77      if test -z "$EGREP"; then
78   ac_path_EGREP_found=false
79   # Loop through the user's path and test for each of PROGNAME-LIST
80   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
83   IFS=$as_save_IFS
84   test -z "$as_dir" && as_dir=.
85     for ac_prog in egrep; do
86     for ac_exec_ext in '' $ac_executable_extensions; do
87       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
88       as_fn_executable_p "$ac_path_EGREP" || continue
89 # Check for GNU ac_path_EGREP and select it if it is found.
90   # Check for GNU $ac_path_EGREP
91 case `"$ac_path_EGREP" --version 2>&1` in
92 *GNU*)
93   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
95   ac_count=0
96   $as_echo_n 0123456789 >"conftest.in"
97   while :
98   do
99     cat "conftest.in" "conftest.in" >"conftest.tmp"
100     mv "conftest.tmp" "conftest.in"
101     cp "conftest.in" "conftest.nl"
102     $as_echo 'EGREP' >> "conftest.nl"
103     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
104     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
105     as_fn_arith $ac_count + 1 && ac_count=$as_val
106     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
107       # Best one so far, save it but keep looking for a better one
108       ac_cv_path_EGREP="$ac_path_EGREP"
109       ac_path_EGREP_max=$ac_count
110     fi
111     # 10*(2^10) chars as input seems more than enough
112     test $ac_count -gt 10 && break
113   done
114   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
115 esac
117       $ac_path_EGREP_found && break 3
118     done
119   done
120   done
121 IFS=$as_save_IFS
122   if test -z "$ac_cv_path_EGREP"; then
123     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
124   fi
125 else
126   ac_cv_path_EGREP=$EGREP
129    fi
131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
132 $as_echo "$ac_cv_path_EGREP" >&6; }
133  EGREP="$ac_cv_path_EGREP"
136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
137 /* end confdefs.h.  */
138 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
139                    yes
140                   #endif
142 _ACEOF
143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
144   $EGREP "yes" >/dev/null 2>&1; then :
145   endianness=le
146 else
147   endianness=be
149 rm -f conftest*
152 case "$machine" in
153 sh3*)           base_machine=sh
154                 machine=sh/$endianness/sh3
155                 with_fp_cond="defined __SH_FPU_ANY__"
156                 ;;
157 sh4*)           base_machine=sh
158                 machine=sh/$endianness/sh4
159                 with_fp_cond="defined __SH_FPU_ANY__"
160                 ;;
161 esac