Sorry I came late to this discussion, but why not use something more like:
http://autoconf-archive.cryp.to/ax_openmp.html
It's much shorter than the currently proposed macro, and doesn't have
the hackery of testing for compiler "brand" in order to get the
flag---it just tries all the known flags until it finds one that works.
This is much more in the spirit of autoconf, and much more likely to
work with new compilers that come along.
The autoconf-archive macro is also reasonably well tested, having been
used successfully with FFTW for a number of years now. The only times
people have reported failures was when it was missing flags for some
compiler, but all of these cases I am aware of have been rectified in
the current posted macro.
Regards,
Steven G. Johnson
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf