[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in AC_COMPUTE_INT
From: |
Akim Demaille |
Subject: |
Re: bug in AC_COMPUTE_INT |
Date: |
16 Nov 2000 12:51:05 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
| 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], address@hidden:@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?
- bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT,
Akim Demaille <=
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Akim Demaille, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Peter Eisentraut, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Akim Demaille, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Paul Eggert, 2000/11/16