On May 1, 2013, at 10:18 AM, Igor Galić <i.ga...@brainsware.org> wrote:
> > > ----- Original Message ----- >> Wednesday, May 1, 2013, 8:58:50 AM, you wrote: >> >>> On May 1, 2013, at 12:48 AM, Igor Galić <i.ga...@brainsware.org> >>> wrote: >> >> >>>> Following this basic idea here >> >>>> http://nadeausoftware.com/articles/2012/10/c_c_tip_how_detect_compiler_name_and_version_using_compiler_predefined_macros >> >> >>> This is a great idea. You should be able to implement it with only >>> compilation; running a program makes life harder for cross >>> compiling ... >> >> By wrapping broken code with the appropriate #define and checking for >> compilation success? > > m4_define([_TS_C_COMPILE_INTEL_testbody], [ > int main (void) { > # if !defined(__icc) || !defined() > This should fail if it's the compiler isn't Intel C/C++ Compiler > # endif > } > ]) > > Like so? Exactly!