[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stdint problem
From: |
Simon Josefsson |
Subject: |
stdint problem |
Date: |
Tue, 28 Nov 2006 22:02:02 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
The patch below causes this error when running configure for me:
checking absolute name of <stdint.h>... ///usr/include/stdint.h
checking whether stdint.h conforms to C99... no
./configure: line 31250: syntax error near unexpected token `('
./configure: line 31250: `if { as_var=sizeof ($gltype) * CHAR_BIT; eval "test
\"\${$as_var+set}\" = set"; }; then'
make: *** [bootstrap] Error 2
address@hidden:~/src/gnutls$
...
I'm using autoconf 2.60a, in Debian.
Any ideas?
/Simon
Index: stdint.m4
===================================================================
RCS file: /sources/gnulib/gnulib/m4/stdint.m4,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -p -r1.23 -r1.24
--- stdint.m4 11 Oct 2006 05:58:47 -0000 1.23
+++ stdint.m4 27 Nov 2006 22:58:46 -0000 1.24
@@ -1,4 +1,4 @@
-# stdint.m4 serial 19
+# stdint.m4 serial 20
dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -229,7 +229,7 @@ AC_DEFUN([gl_STDINT_BITSIZEOF],
[Define to the number of bits in type ']gltype['.])])
for gltype in $1 ; do
AC_CACHE_CHECK([for bit size of $gltype], [gl_cv_bitsizeof_${gltype}],
- [_AC_COMPUTE_INT([sizeof ($gltype) * CHAR_BIT], result,
+ [AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT],
[$2
#include <limits.h>], [result=unknown])
eval gl_cv_bitsizeof_${gltype}=\$result
@@ -366,3 +366,9 @@ AC_DEFUN([gl_STDINT_TYPE_PROPERTIES],
gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t],
[gl_STDINT_INCLUDES])
])
+
+dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
+dnl Remove this when we can assume autoconf >= 2.61.
+m4_ifdef([AC_COMPUTE_INT], [], [
+ AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])])
+])
- stdint problem,
Simon Josefsson <=