The Intel C++ compile defines the __GNUC__ macro. This generally causes
lots of annoying problems since Intel C++ is not completely compatible
with gcc. To avoid this any problem with this, the following patch
should help both Linux and Mac OS X Intel compilers.
Steve Peters
st...@fisharerojo.org
--- config/auto/gcc/test_c.in.old 2007-01-03 22:28:24.000000000 -0600
+++ config/auto/gcc/test_c.in 2007-01-03 22:29:11.000000000 -0600
@@ -8,7 +8,7 @@
main(int argc, char **argv)
{
puts("(");
-#ifdef __GNUC__
+#if defined(__GNUC__) && ! defined(__INTEL_COMPILER)
printf("__GNUC__ => %d,\n", __GNUC__);
# ifdef __GNUC_MINOR__
printf("__GNUC_MINOR__ =>%d,\n", __GNUC_MINOR__);
Jonathan