* doc/autoconf.texi (Generic Types): Document the restrictions
commitfb82e1a12232ccbd6fa3ef10bdc04bd3e1e72e16
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Apr 2007 00:12:06 +0000 (12 00:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Apr 2007 00:12:06 +0000 (12 00:12 +0000)
tree66f8bb191f74d0778c07e6dd6bb6c01c5ab15276
parent3d917d19234461d0ca88e7f14ebb5acf37597b51
* doc/autoconf.texi (Generic Types): Document the restrictions
on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
(Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
with objects too.  Document the restrictions on its use.
Document the restrictions on AC_CHECK_ALIGNOF's type argument.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
works but the latter doesn't, then it's a valid type.
This lets people use function types and so forth.
For C++ there doesn't seem to be a simple solution, so leave it alone.
(AC_CHECK_SIZEOF): Allow argument to be a variable.
(AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
AC_CHECK_TYPE; that wasn't documented or necessary.
ChangeLog
doc/autoconf.texi
lib/autoconf/types.m4