On 25 November 2010 15:41, Bojan Smojver <[email protected]> wrote: > On Thu, 2010-11-25 at 15:16 +0900, Daniel Stonier wrote: >> ac_cv_sizeof_off_t=4^M >> ac_cv_sizeof_pid_t=4^M > > Are you saying that these are \r (ASCII 13) characters? This could be > related to fprintf() from the test printing out \r\n instead of just \n > on your platform. Maybe the file should be opened with "wb" or > something. > > This is what I'm referring to (you can find this in configure script): > -------------------------------- > /* end confdefs.h. */ > #include <stdio.h> > #include <sys/types.h> > main() > { > FILE *f=fopen("conftestval", "w"); > if (!f) exit(1); > fprintf(f, "%d\n", sizeof(pid_t)); > exit(0); > } > -------------------------------- > /* end confdefs.h. */ > #include <stdio.h> > #include <sys/types.h> > main() > { > FILE *f=fopen("conftestval", "w"); > if (!f) exit(1); > fprintf(f, "%d\n", sizeof(off_t)); > exit(0); > } > -------------------------------- > > Hmm, not sure what's going on there. Don't usually run APR on mingw. > > -- > Bojan
Ok, so this is confusing me a little - how would it even run a test being a mingw cross compiled program (host is linux)? -- Phone : +82-10-5400-3296 (010-5400-3296) Home: http://snorriheim.dnsdojo.com/ Yujin Robot: http://www.yujinrobot.com/ Embedded Ros : http://www.ros.org/wiki/eros Embedded Control Libraries: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
