Maciej W. Rozycki wrote:
On Wed, 4 Apr 2001, Ralf Baechle wrote:
stdint.h isn't available everywhere. Aside of that I won't object ...
That's why I wrote of legacy hosts. The AC_CHECK_HEADERS and
AC_CHECK_TYPE macros are cross-compilation-safe and they are all that
modern hosts need. For other hosts AC_CHECK_SIZEOF might be used to find
generic types suitable for ISO C definitions, which might be problematic
for cross-compilation, though. Still this applies to non-gcc
cross-compilers only, which are not that common, AFAIK.
You might call it a hack, but it makes life easy if you do something like:
sh ./configure --target=$CONFIG_TARGET --host=$CONFIG_HOST
This will short circuit a "broken" configure trying to execute programs
for this kind of thing. If configure doesn't care about sizeof_int, then
this definition is silently ignored...
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9200
fax : (256)-837-3839