1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/microblaze
6 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7 printf %s "checking for grep that handles long lines and -e... " >&6; }
8 if test ${ac_cv_path_GREP+y}
10 printf %s "(cached) " >&6
12 if test -z "$GREP"; then
13 ac_path_GREP_found=false
14 # Loop through the user's path and test for each of PROGNAME-LIST
15 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
24 for ac_prog in grep ggrep
26 for ac_exec_ext in '' $ac_executable_extensions; do
27 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
28 as_fn_executable_p "$ac_path_GREP" || continue
29 # Check for GNU ac_path_GREP and select it if it is found.
30 # Check for GNU $ac_path_GREP
31 case `"$ac_path_GREP" --version 2>&1` in
33 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
36 printf %s 0123456789 >"conftest.in"
39 cat "conftest.in" "conftest.in" >"conftest.tmp"
40 mv "conftest.tmp" "conftest.in"
41 cp "conftest.in" "conftest.nl"
42 printf "%s\n" 'GREP' >> "conftest.nl"
43 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
44 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
45 as_fn_arith $ac_count + 1 && ac_count=$as_val
46 if test $ac_count -gt ${ac_path_GREP_max-0}; then
47 # Best one so far, save it but keep looking for a better one
48 ac_cv_path_GREP="$ac_path_GREP"
49 ac_path_GREP_max=$ac_count
51 # 10*(2^10) chars as input seems more than enough
52 test $ac_count -gt 10 && break
54 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
57 $ac_path_GREP_found && break 3
62 if test -z "$ac_cv_path_GREP"; then
63 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
70 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
71 printf "%s\n" "$ac_cv_path_GREP" >&6; }
72 GREP="$ac_cv_path_GREP"
75 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
76 printf %s "checking for egrep... " >&6; }
77 if test ${ac_cv_path_EGREP+y}
79 printf %s "(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
98 for ac_exec_ext in '' $ac_executable_extensions; do
99 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
100 as_fn_executable_p "$ac_path_EGREP" || continue
101 # Check for GNU ac_path_EGREP and select it if it is found.
102 # Check for GNU $ac_path_EGREP
103 case `"$ac_path_EGREP" --version 2>&1` in
105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
108 printf %s 0123456789 >"conftest.in"
111 cat "conftest.in" "conftest.in" >"conftest.tmp"
112 mv "conftest.tmp" "conftest.in"
113 cp "conftest.in" "conftest.nl"
114 printf "%s\n" 'EGREP' >> "conftest.nl"
115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
117 as_fn_arith $ac_count + 1 && ac_count=$as_val
118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
119 # Best one so far, save it but keep looking for a better one
120 ac_cv_path_EGREP="$ac_path_EGREP"
121 ac_path_EGREP_max=$ac_count
123 # 10*(2^10) chars as input seems more than enough
124 test $ac_count -gt 10 && break
126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
129 $ac_path_EGREP_found && break 3
134 if test -z "$ac_cv_path_EGREP"; then
135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
138 ac_cv_path_EGREP=$EGREP
143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
144 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
145 EGREP="$ac_cv_path_EGREP"
148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
149 /* end confdefs.h. */
150 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
156 $EGREP "yes" >/dev/null 2>&1
166 microblaze*) base_machine=microblaze machine=microblaze/$endianness ;;