(AC_CHECK_SIZEOF): Report an error if the size cannot be determined

even though the type exists.
This commit is contained in:
Paul Eggert 2001-09-30 15:16:18 +00:00
parent 781bca17ce
commit a452b6b7e3

View File

@ -354,7 +354,8 @@ AC_CACHE_CHECK([size of $1], AS_TR_SH([ac_cv_sizeof_$1]),
[if test "$AS_TR_SH([ac_cv_type_$1])" = yes; then
_AC_COMPUTE_INT([sizeof ($1)],
[AS_TR_SH([ac_cv_sizeof_$1])],
[AC_INCLUDES_DEFAULT([$3])])
[AC_INCLUDES_DEFAULT([$3])],
[AC_MSG_ERROR([cannot compute sizeof ($1), 77])])
else
AS_TR_SH([ac_cv_sizeof_$1])=0
fi])dnl