Re: [Rd] Best way to manage configuration for openMP support

2010-09-15 Thread Karl Forner
Thanks a lot, I have implemented the configure stuff and it works perfectly !! Exactly what I was looking for. I just added AC_PREREQ([2.62]) because the AC_OPENMP was only supported from this version, and AC_MSG_WARN([NO OpenMP support detected. You should should use gcc = 4.2 !!!]) when no

Re: [Rd] Best way to manage configuration for openMP support

2010-09-14 Thread Dirk Eddelbuettel
On 14 September 2010 at 11:06, Karl Forner wrote: | I've written a package that may use OpenMP to speed up computations. OpenMP | is supported in recent Gcc versions by using the -fopenmp flag. | The problem is that flag crashed gcc versions that do not support OpenMP. | So what is the best way

Re: [Rd] Best way to manage configuration for openMP support

2010-09-14 Thread Simon Urbanek
Please do NOT use version checks on compilers and other tools - those are the wrong way to go! You want to use actual functionality check as that is the only reliable way to find out that something works or not*. For example there are issues on certain Linux systems with the gomp library that

Re: [Rd] Best way to manage configuration for openMP support

2010-09-14 Thread Dirk Eddelbuettel
On 14 September 2010 at 13:01, Simon Urbanek wrote: | Please do NOT use version checks on compilers and other tools - those are the wrong way to go! You want to use actual functionality check as that is the only reliable way to find out that something works or not*. For example there are