----- 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?

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

Reply via email to