Hi,

If I'm using cygwin, with the -mno-cygwin gcc/g++ compiler option, then
mingw is used. It seems that mingw uses a \r\n for a newline.

AC_CHECK_SIZEOF does these two things on cygwin with autoconf 2.60.
  fprintf(f, "%d\n", sizeof($1));
which prints "4\r\n" if the size is 4 and then
  AC_CV_NAME=`cat conftestval`, ...
now cygwin's cat doesn't understand \r\n, so
  ac_cv_sizeof_int=`cat conftestval`
results in "4\r", which breaks the configure.in scripts that check with
if statements for "$ac_cv_sizeof_int" = "4".

What is the best way to resolve something like this?

Thanks,
Bob Rossi


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to