mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
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:
parent
618eeb55e3
commit
167feac4ba
11
ChangeLog
11
ChangeLog
@ -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.
|
||||
|
@ -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);])])
|
||||
|
||||
|
||||
# ----------------- #
|
||||
|
@ -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);])])
|
||||
|
||||
|
||||
# ----------------- #
|
||||
|
@ -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);])])
|
||||
|
||||
|
||||
# ----------------- #
|
||||
|
@ -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);])])
|
||||
|
||||
|
||||
# ----------------- #
|
||||
|
Loading…
Reference in New Issue
Block a user