AC_TRY_COMPILE works only for code that fits inside "main()"; the test for __attribute__ doesn't fit inside "main()" with GCC 4.0, as it defines a function.