2 AC_CONFIG_HEADER(config.h:config_in.h)
7 AC_CHECK_SIZEOF(char, 1)
8 AC_CHECK_SIZEOF(short, 2)
9 AC_CHECK_SIZEOF(int, 4)
10 AC_CHECK_SIZEOF(long, 4)
11 AC_CHECK_SIZEOF(long long, 8)
15 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
19 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
23 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
27 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
31 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
38 # Try to append a c99 flag
40 if test "$ac_cv_prog_cc_c99" != "no"; then
41 CFLAGS="$ac_cv_prog_cc_c99 ${CFLAGS}"
44 AC_MSG_CHECKING(type name for byte)
45 TYPE_BYTE=`type_name 1`
46 AC_MSG_RESULT($TYPE_BYTE)
47 AC_MSG_CHECKING(type name for word)
48 TYPE_WORD=`type_name 2`
49 AC_MSG_RESULT($TYPE_WORD)
50 AC_DEFINE_UNQUOTED(TYPE_BYTE, [$TYPE_BYTE], [XXX])
51 AC_DEFINE_UNQUOTED(TYPE_WORD, [$TYPE_WORD], [XXX])
52 AC_DEFINE_UNQUOTED(TYPE_UBYTE, [unsigned $TYPE_BYTE], [XXX])
53 AC_DEFINE_UNQUOTED(TYPE_UWORD, [unsigned $TYPE_WORD], [XXX])
55 AH_BOTTOM([typedef TYPE_UBYTE Uint8;
56 typedef TYPE_UWORD Uint16;])