When using Cygwin, in spite of all their efforts, it may happen

that `confestval' be read in binary mode.  The shell then fails to
properly strip the rn.
Reported by Lars J. Aas.
* aclang.m4 (AC_LANG_INT_SAVE): Don't add any trailing new line,
and close the file.
Suggested by Peter Eisentraut.
This commit is contained in:
Akim Demaille 2000-11-30 14:49:43 +00:00
parent 618eeb55e3
commit 167feac4ba
5 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,14 @@
2000-11-30 Akim Demaille <akim@epita.fr>
When using Cygwin, in spite of all their efforts, it may happen
that `confestval' be read in binary mode. The shell then fails to
properly strip the \r\n.
Reported by Lars J. Aas.
* aclang.m4 (AC_LANG_INT_SAVE): Don't add any trailing new line,
and close the file.
Suggested by Peter Eisentraut.
2000-11-30 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Systemology): New section.

View File

@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
[FILE *f = fopen ("conftestval", "w");
if (!f)
exit (1);
fprintf (f, "%d\n", ($2));])])
fprintf (f, "%d", ($2));
fclose (f);])])
# ----------------- #

View File

@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
[FILE *f = fopen ("conftestval", "w");
if (!f)
exit (1);
fprintf (f, "%d\n", ($2));])])
fprintf (f, "%d", ($2));
fclose (f);])])
# ----------------- #

View File

@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
[FILE *f = fopen ("conftestval", "w");
if (!f)
exit (1);
fprintf (f, "%d\n", ($2));])])
fprintf (f, "%d", ($2));
fclose (f);])])
# ----------------- #

View File

@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
[FILE *f = fopen ("conftestval", "w");
if (!f)
exit (1);
fprintf (f, "%d\n", ($2));])])
fprintf (f, "%d", ($2));
fclose (f);])])
# ----------------- #