On Mon, Mar 17, 2003 at 06:30:41PM +0100, Sander Niemeijer
<address@hidden> wrote:
I solved the problem with the help of the AC_DEFINE_INTEGER_BITS macro
from the GNU Autoconf Macro Archive
(<http://www.gnu.org/software/ac-archive/htmldoc/
ac_define_integer_bits.html>) together with the following calls in my
configure.ac:
---
AC_DEFINE_INTEGER_BITS([uint8_t], [u_int8_t], [unsigned char])
[...]
Hi,
Thanks a lot for your help.
However, I've been unable to use the macro. The problem is that
"m4_define" calls aren't translated, and are still found in the
configure file.
I did :
- copy the content of ac_define_integer_bits.m4 in my acinclude.m4
file.
- add "AC_DEFINE_INTEGER_BITS([uint8_t], [u_int8_t], [unsigned
char])", etc ... in my configure.in.
- run aclocal. The functions get correctly copied in aclocal.m4.
- run autoconf.
I get stuff like :
m4_define(ac_datatype_bits, m4_translit(uint8_t, [a-zA-Z_]))
in my configure, and of course it fails to run :
./configure: line 1871: syntax error near unexpected token
`ac_datatype_bits,'
./configure: line 1871: `m4_define(ac_datatype_bits,
m4_translit(uint8_t, [a-zA-Z_]))'
How did you fix that ?
Thanks,
Lucas