configure 5.0 KB

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