Hello, On Tuesday 04 March 2008 15:59:02 Johannes Schindelin wrote: > On Tue, 4 Mar 2008, Michal Rokos wrote: > > +AC_RUN_IFELSE( > > + [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], > > + [[char c; > > + FILE *f = fopen(".", "r"); > > + if (! f) return 0; > > + if (f && fread(&c, 1, 1, f) > 0) return 1]])], > > + [ac_cv_fread_reads_directories=no], > > + [ac_cv_fread_reads_directories=yes]) > > I do not see the issue addressed that I saw on msysGit. ahh, sorry I've included some old one. Now it's +AC_RUN_IFELSE( + [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], + [[char c; + FILE *f = fopen(".", "r"); + return f && fread(&c, 1, 1, f)]])], + [ac_cv_fread_reads_directories=no], + [ac_cv_fread_reads_directories=yes]) I've tried to reproduce, but I failed to do so. When I put "return 0;" it detect that "no"; when I return something else, "yes" is detected - as it should. The C snippet in configure script looks like: $ac_includes_default int main () { char c; FILE *f = fopen(".", "r"); return f && fread(&c, 1, 1, f) ; return 0; } Does your autoconf create the same thing? Michal -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html