configure 5.0 KB

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