| I think I found it - checking now:
|
| Index: aclang.m4
| ===================================================================
| RCS file: /cvs/autoconf/aclang.m4,v
| retrieving revision 1.89
| diff -u -r1.89 aclang.m4
| --- aclang.m4 2000/11/14 11:06:37 1.89
| +++ aclang.m4 2000/11/16 11:56:22
| @@ -397,7 +397,7 @@
| # inclusion of `stdio.h'.
| m4_define([AC_LANG_INT_SAVE(C)],
| [AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])],
| -[FILE *f = fopen ("conftestval", "w");
| +[FILE *f = fopen ("conftestval", "wb");
Portable?
| if (!f)
| exit (1);
| fprintf (f, "%d\n", ($2));])])
I don't get it: that's the code which is in 2.13 (God, I had forgotten
how ugly the 2.13 code is!)
| dnl AC_CHECK_SIZEOF(TYPE [, CROSS-SIZE])
| AC_DEFUN(AC_CHECK_SIZEOF,
| [changequote(<<, >>)dnl
| dnl The name to #define.
| define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
| dnl The cache variable name.
| define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl
| changequote([, ])dnl
| AC_MSG_CHECKING(size of $1)
| AC_CACHE_VAL(AC_CV_NAME,
| [AC_TRY_RUN([#include <stdio.h>
| main()
| {
| FILE *f=fopen("conftestval", "w");
| if (!f) exit(1);
| fprintf(f, "%d\n", sizeof($1));
| exit(0);
| }], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl
| AC_MSG_RESULT($AC_CV_NAME)
| AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)
| undefine([AC_TYPE_NAME])dnl
| undefine([AC_CV_NAME])dnl
| ])
so how come we waited till today to discover this issue?