300-configure_for_crosscompiling 1010 B

1234567891011121314151617181920212223242526272829303132
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -867,7 +867,8 @@ AC_RUN_IFELSE(
  4. FILE *f = fopen(".", "r");
  5. return f && fread(&c, 1, 1, f)]])],
  6. [ac_cv_fread_reads_directories=no],
  7. - [ac_cv_fread_reads_directories=yes])
  8. + [ac_cv_fread_reads_directories=yes],
  9. + [ac_cv_fread_reads_directories=no])
  10. ])
  11. if test $ac_cv_fread_reads_directories = yes; then
  12. FREAD_READS_DIRECTORIES=UnfortunatelyYes
  13. @@ -901,7 +902,8 @@ AC_RUN_IFELSE(
  14. if (snprintf(buf, 3, "%s", "12345") != 5
  15. || strcmp(buf, "12")) return 1]])],
  16. [ac_cv_snprintf_returns_bogus=no],
  17. - [ac_cv_snprintf_returns_bogus=yes])
  18. + [ac_cv_snprintf_returns_bogus=yes],
  19. + [ac_cv_snprintf_returns_bogus=no])
  20. ])
  21. if test $ac_cv_snprintf_returns_bogus = yes; then
  22. SNPRINTF_RETURNS_BOGUS=UnfortunatelyYes
  23. @@ -924,7 +926,8 @@ yippeeyeswehaveit
  24. #endif
  25. ]),
  26. [ac_cv_sane_mode_bits=yes],
  27. - [ac_cv_sane_mode_bits=no])
  28. + [ac_cv_sane_mode_bits=no],
  29. + [ac_cv_sane_mode_bits=yes])
  30. ])
  31. if test $ac_cv_sane_mode_bits = yes; then
  32. NEEDS_MODE_TRANSLATION=