| 1 |
# This file is generated from configure.ac by Autoconf. DO NOT EDIT! |
| 2 |
# Local configure fragment for sysdeps/mips. |
| 3 |
|
| 4 |
printf "%s\n" "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 10 |
printf %s "checking for egrep -e... " >&6; } |
| 11 |
if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 12 |
then : |
| 13 |
printf %s "(cached) " >&6 |
| 14 |
else case e in #( |
| 15 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 16 |
ac_path_EGREP_TRADITIONAL_found=false |
| 17 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 18 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 20 |
do |
| 21 |
IFS=$as_save_IFS |
| 22 |
case $as_dir in #((( |
| 23 |
'') as_dir=./ ;; |
| 24 |
*/) ;; |
| 25 |
*) as_dir=$as_dir/ ;; |
| 26 |
esac |
| 27 |
for ac_prog in grep ggrep |
| 28 |
do |
| 29 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 30 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 31 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 32 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 33 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 34 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 35 |
*GNU*) |
| 36 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 37 |
#( |
| 38 |
*) |
| 39 |
ac_count=0 |
| 40 |
printf %s 0123456789 >"conftest.in" |
| 41 |
while : |
| 42 |
do |
| 43 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 44 |
mv "conftest.tmp" "conftest.in" |
| 45 |
cp "conftest.in" "conftest.nl" |
| 46 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 47 |
"$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 48 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 49 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 50 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 51 |
# Best one so far, save it but keep looking for a better one |
| 52 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 53 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 54 |
fi |
| 55 |
# 10*(2^10) chars as input seems more than enough |
| 56 |
test $ac_count -gt 10 && break |
| 57 |
done |
| 58 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 59 |
esac |
| 60 |
|
| 61 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 62 |
done |
| 63 |
done |
| 64 |
done |
| 65 |
IFS=$as_save_IFS |
| 66 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 67 |
: |
| 68 |
fi |
| 69 |
else |
| 70 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 71 |
fi |
| 72 |
|
| 73 |
if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 74 |
then : |
| 75 |
ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 76 |
else case e in #( |
| 77 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 78 |
ac_path_EGREP_TRADITIONAL_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 |
| 82 |
do |
| 83 |
IFS=$as_save_IFS |
| 84 |
case $as_dir in #((( |
| 85 |
'') as_dir=./ ;; |
| 86 |
*/) ;; |
| 87 |
*) as_dir=$as_dir/ ;; |
| 88 |
esac |
| 89 |
for ac_prog in egrep |
| 90 |
do |
| 91 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 92 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 93 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 94 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 95 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 96 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 97 |
*GNU*) |
| 98 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 99 |
#( |
| 100 |
*) |
| 101 |
ac_count=0 |
| 102 |
printf %s 0123456789 >"conftest.in" |
| 103 |
while : |
| 104 |
do |
| 105 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 106 |
mv "conftest.tmp" "conftest.in" |
| 107 |
cp "conftest.in" "conftest.nl" |
| 108 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 109 |
"$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 110 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 111 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 112 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 113 |
# Best one so far, save it but keep looking for a better one |
| 114 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 115 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 116 |
fi |
| 117 |
# 10*(2^10) chars as input seems more than enough |
| 118 |
test $ac_count -gt 10 && break |
| 119 |
done |
| 120 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 121 |
esac |
| 122 |
|
| 123 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 124 |
done |
| 125 |
done |
| 126 |
done |
| 127 |
IFS=$as_save_IFS |
| 128 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 129 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 130 |
fi |
| 131 |
else |
| 132 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 133 |
fi |
| 134 |
;; |
| 135 |
esac |
| 136 |
fi ;; |
| 137 |
esac |
| 138 |
fi |
| 139 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 140 |
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 141 |
EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 142 |
|
| 143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 |
| 144 |
printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } |
| 145 |
if test ${libc_cv_mips_nan2008+y} |
| 146 |
then : |
| 147 |
printf %s "(cached) " >&6 |
| 148 |
else case e in #( |
| 149 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 150 |
/* end confdefs.h. */ |
| 151 |
dnl |
| 152 |
#ifdef __mips_nan2008 |
| 153 |
yes |
| 154 |
#endif |
| 155 |
_ACEOF |
| 156 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 157 |
$EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
| 158 |
then : |
| 159 |
libc_cv_mips_nan2008=yes |
| 160 |
else case e in #( |
| 161 |
e) libc_cv_mips_nan2008=no ;; |
| 162 |
esac |
| 163 |
fi |
| 164 |
rm -rf conftest* |
| 165 |
;; |
| 166 |
esac |
| 167 |
fi |
| 168 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 |
| 169 |
printf "%s\n" "$libc_cv_mips_nan2008" >&6; } |
| 170 |
if test x$libc_cv_mips_nan2008 = xyes; then |
| 171 |
printf "%s\n" "#define HAVE_MIPS_NAN2008 1" >>confdefs.h |
| 172 |
|
| 173 |
fi |
| 174 |
|