I use GNU Autoconf 2.63 on CentoOS 6.3 32-bit. In my configure script I check the sizes of some types, like:
AC_CHECK_SIZEOF(char)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
, but the result is always 0 when running ./configure:
checking size of char... 0
checking size of int... 0
checking size of long... 0
The same configurations run fine on Mac OS X SL and Ubuntu though.
Any ideas why AC_CHECK_SIZEOF returns 0 on CentOS?
Seems that it was a lib that I linked in that was missing, when I added the correct symbolic link to the lib the
AC_CHECK_SIZEOFreturned the correct values.Solution was found here:
http://lists.gnu.org/archive/html/bug-autoconf/2012-08/msg00009.html