NEWS: Add advisories.
[glibc.git] / sysdeps / microblaze / preconfigure
blobee6689e2aa96978ab87c380d00d8b1403a762967
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}
9 then :
10   printf %s "(cached) " >&6
11 else $as_nop
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
18   IFS=$as_save_IFS
19   case $as_dir in #(((
20     '') as_dir=./ ;;
21     */) ;;
22     *) as_dir=$as_dir/ ;;
23   esac
24     for ac_prog in grep ggrep
25    do
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
32 *GNU*)
33   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
35   ac_count=0
36   printf %s 0123456789 >"conftest.in"
37   while :
38   do
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
50     fi
51     # 10*(2^10) chars as input seems more than enough
52     test $ac_count -gt 10 && break
53   done
54   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
55 esac
57       $ac_path_GREP_found && break 3
58     done
59   done
60   done
61 IFS=$as_save_IFS
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
64   fi
65 else
66   ac_cv_path_GREP=$GREP
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}
78 then :
79   printf %s "(cached) " >&6
80 else $as_nop
81   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
82    then ac_cv_path_EGREP="$GREP -E"
83    else
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
90   IFS=$as_save_IFS
91   case $as_dir in #(((
92     '') as_dir=./ ;;
93     */) ;;
94     *) as_dir=$as_dir/ ;;
95   esac
96     for ac_prog in egrep
97    do
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
104 *GNU*)
105   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
107   ac_count=0
108   printf %s 0123456789 >"conftest.in"
109   while :
110   do
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
122     fi
123     # 10*(2^10) chars as input seems more than enough
124     test $ac_count -gt 10 && break
125   done
126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
127 esac
129       $ac_path_EGREP_found && break 3
130     done
131   done
132   done
133 IFS=$as_save_IFS
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
136   fi
137 else
138   ac_cv_path_EGREP=$EGREP
141    fi
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__
151                    yes
152                   #endif
154 _ACEOF
155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
156   $EGREP "yes" >/dev/null 2>&1
157 then :
158   endianness=le
159 else $as_nop
160   endianness=be
162 rm -rf conftest*
165 case "$machine" in
166 microblaze*)   base_machine=microblaze machine=microblaze/$endianness ;;
167 esac