>>>>> "Andreas" == Andreas Schwab <[EMAIL PROTECTED]> writes:

Andreas> IMHO, _AC_CHECK_TYPE_REPLACEMENT_TYPE_P should treat words of
Andreas> the form [a-z]*_t as types so that AC_CHECK_TYPE(__u8,
Andreas> u_int8_t) does the right thing.  Incidentally,
Andreas> AC_CHECK_TYPE(__s8, int8_t) is already treated as an old
Andreas> form, because int8_t starts with "int".

This was settled with Paul.

Paul, the code is

# _AC_CHECK_TYPE_REPLACEMENT_TYPE_P(STRING)
# -----------------------------------------
# Return `1' if STRING seems to be a builtin C/C++ type, i.e., if it
# starts with `_Bool', `bool', `char', `double', `float', `int',
# `long', `short', `signed', or `unsigned' followed by characters
# that are defining types.
# Because many people have used `off_t' and `size_t' too, they are added
# for better common-useward backward compatibility.
m4_define([_AC_CHECK_TYPE_REPLACEMENT_TYPE_P],
[m4_if(m4_regexp([$1],
                 
[^\(_Bool\|bool\|char\|double\|float\|int\|long\|short\|\(un\)?signed\|size_t\|off_t\)\([_a-zA-Z0-9()
 *]\|\[\|\]\)*$]),
       0, 1, 0)dnl
])# _AC_CHECK_TYPE_REPLACEMENT_TYPE_P


But Andreas, I guess you do have a warning, don't you?  What patch
would you suggest?

Reply via email to