stdlib: Remove use of mergesort on qsort (BZ 21719)
[glibc.git] / sysdeps / arc / configure
blob7b27e264905e53d8bd7cc07f03e809b56a879f2b
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/arc.
4 libc_cv_have_sdata_section=no
6 # For ARC, historically ; was used for comments and not newline
7 # Later # also got added to comment list, but ; couldn't be switched to
8 # canonical newline as there's lots of code out there which will break
9 libc_cv_asm_line_sep='`'
10 printf "%s\n" "#define ASM_LINE_SEP $libc_cv_asm_line_sep" >>confdefs.h
13 # For big endian ABI, generate a symbol for selecting right dynamic linker
16 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
17 printf %s "checking for grep that handles long lines and -e... " >&6; }
18 if test ${ac_cv_path_GREP+y}
19 then :
20   printf %s "(cached) " >&6
21 else $as_nop
22   if test -z "$GREP"; then
23   ac_path_GREP_found=false
24   # Loop through the user's path and test for each of PROGNAME-LIST
25   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
28   IFS=$as_save_IFS
29   case $as_dir in #(((
30     '') as_dir=./ ;;
31     */) ;;
32     *) as_dir=$as_dir/ ;;
33   esac
34     for ac_prog in grep ggrep
35    do
36     for ac_exec_ext in '' $ac_executable_extensions; do
37       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
38       as_fn_executable_p "$ac_path_GREP" || continue
39 # Check for GNU ac_path_GREP and select it if it is found.
40   # Check for GNU $ac_path_GREP
41 case `"$ac_path_GREP" --version 2>&1` in
42 *GNU*)
43   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
45   ac_count=0
46   printf %s 0123456789 >"conftest.in"
47   while :
48   do
49     cat "conftest.in" "conftest.in" >"conftest.tmp"
50     mv "conftest.tmp" "conftest.in"
51     cp "conftest.in" "conftest.nl"
52     printf "%s\n" 'GREP' >> "conftest.nl"
53     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
54     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
55     as_fn_arith $ac_count + 1 && ac_count=$as_val
56     if test $ac_count -gt ${ac_path_GREP_max-0}; then
57       # Best one so far, save it but keep looking for a better one
58       ac_cv_path_GREP="$ac_path_GREP"
59       ac_path_GREP_max=$ac_count
60     fi
61     # 10*(2^10) chars as input seems more than enough
62     test $ac_count -gt 10 && break
63   done
64   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
65 esac
67       $ac_path_GREP_found && break 3
68     done
69   done
70   done
71 IFS=$as_save_IFS
72   if test -z "$ac_cv_path_GREP"; then
73     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
74   fi
75 else
76   ac_cv_path_GREP=$GREP
80 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
81 printf "%s\n" "$ac_cv_path_GREP" >&6; }
82  GREP="$ac_cv_path_GREP"
85 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
86 printf %s "checking for egrep... " >&6; }
87 if test ${ac_cv_path_EGREP+y}
88 then :
89   printf %s "(cached) " >&6
90 else $as_nop
91   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
92    then ac_cv_path_EGREP="$GREP -E"
93    else
94      if test -z "$EGREP"; then
95   ac_path_EGREP_found=false
96   # Loop through the user's path and test for each of PROGNAME-LIST
97   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
100   IFS=$as_save_IFS
101   case $as_dir in #(((
102     '') as_dir=./ ;;
103     */) ;;
104     *) as_dir=$as_dir/ ;;
105   esac
106     for ac_prog in egrep
107    do
108     for ac_exec_ext in '' $ac_executable_extensions; do
109       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
110       as_fn_executable_p "$ac_path_EGREP" || continue
111 # Check for GNU ac_path_EGREP and select it if it is found.
112   # Check for GNU $ac_path_EGREP
113 case `"$ac_path_EGREP" --version 2>&1` in
114 *GNU*)
115   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
117   ac_count=0
118   printf %s 0123456789 >"conftest.in"
119   while :
120   do
121     cat "conftest.in" "conftest.in" >"conftest.tmp"
122     mv "conftest.tmp" "conftest.in"
123     cp "conftest.in" "conftest.nl"
124     printf "%s\n" 'EGREP' >> "conftest.nl"
125     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
127     as_fn_arith $ac_count + 1 && ac_count=$as_val
128     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
129       # Best one so far, save it but keep looking for a better one
130       ac_cv_path_EGREP="$ac_path_EGREP"
131       ac_path_EGREP_max=$ac_count
132     fi
133     # 10*(2^10) chars as input seems more than enough
134     test $ac_count -gt 10 && break
135   done
136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
137 esac
139       $ac_path_EGREP_found && break 3
140     done
141   done
142   done
143 IFS=$as_save_IFS
144   if test -z "$ac_cv_path_EGREP"; then
145     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
146   fi
147 else
148   ac_cv_path_EGREP=$EGREP
151    fi
153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
154 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
155  EGREP="$ac_cv_path_EGREP"
158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
159 printf %s "checking for big endian... " >&6; }
160 if test ${libc_cv_arc_be+y}
161 then :
162   printf %s "(cached) " >&6
163 else $as_nop
164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
165 /* end confdefs.h.  */
166 #ifdef __BIG_ENDIAN__
167                       yes
168                      #endif
170 _ACEOF
171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
172   $EGREP "yes" >/dev/null 2>&1
173 then :
174   libc_cv_arc_be=yes
175 else $as_nop
176   libc_cv_arc_be=no
178 rm -rf conftest*
181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5
182 printf "%s\n" "$libc_cv_arc_be" >&6; }
183 if test $libc_cv_arc_be = yes; then
184   # For shlib-versions.
185   printf "%s\n" "#define HAVE_ARC_BE 1" >>confdefs.h
187   config_vars="$config_vars
188 default-abi = arcbe"
189 else
190   config_vars="$config_vars
191 default-abi = arcle"