MPI recognition

2010-12-21 Thread Olaf Lenz
Hello everybody! For our scientific software ESPResSo[1], I am trying to get configure to be able to handle MPI compilers correctly. MPI is a parallelization library and it often brings its own compiler, i.e. actually it only brings a wrapper to your compiler, which is usually called mpicc. In our

Question about AC_TRY_LINK_FUNC

2010-12-21 Thread Sergio Belkin
Hi, The question is simple, altough the answer it's no so, what does AC_TRY_LINK_FUNC macro do? Thanks in advance! -- -- Sergio Belkin http://www.sergiobelkin.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - ___ Autoconf mailing list Autoco

Re: Question about AC_TRY_LINK_FUNC

2010-12-21 Thread Eric Blake
On 12/21/2010 08:02 AM, Sergio Belkin wrote: > Hi, > > The question is simple, altough the answer it's no so, what does > AC_TRY_LINK_FUNC macro do? It's a deprecated wrapper around the modern AC_LINK_IFELSE macro. It basically tests whether a symbol (global variable or function) exists in the s

Re: MPI recognition

2010-12-21 Thread Olaf Lenz
Hello again! On 12/21/2010 03:16 PM, Olaf Lenz wrote: > The problem seems to be that AC_PROG_CC doesn't work when using it in > a conditional, is that right? Is there any simple way to do what I > want? After some trial and error I have found a solution for my problem that is very simple. Now I w

Re: MPI recognition

2010-12-21 Thread Eric Blake
On 12/21/2010 07:16 AM, Olaf Lenz wrote: > I have attached my simplified attempt do this. When I run autoconf, I > get the warning > > configure.ac:4: warning: AC_REQUIRE: `AC_PROG_CC' was expanded before > it was required > > and configure doesn't seem to be looking for mpicc, but always finds

Re: Question about AC_TRY_LINK_FUNC

2010-12-21 Thread Sergio Belkin
2010/12/21 Eric Blake : > On 12/21/2010 08:02 AM, Sergio Belkin wrote: >> Hi, >> >> The question is simple, altough the answer it's no so, what does >> AC_TRY_LINK_FUNC macro do? > > It's a deprecated wrapper around the modern AC_LINK_IFELSE macro.  It > basically tests whether a symbol (global var

Re: MPI recognition

2010-12-21 Thread Ralf Wildenhues
Hi Olaf, and sorry for the delay in replying, Eric, * Eric Blake wrote on Tue, Dec 21, 2010 at 04:57:04PM CET: > On 12/21/2010 07:16 AM, Olaf Lenz wrote: > > > After some trial and error I have found a solution for my problem that > > is very simple. Now I wonder whether this is actually the corr

Re: How does one specify linking to 64 bit libraries when there is a choice?

2010-12-21 Thread Ralf Wildenhues
* Bruce Korb wrote on Mon, Dec 20, 2010 at 09:37:58PM CET: > On 12/20/10 11:20, Ralf Wildenhues wrote: > > One crucial part is that libtool gets confused whenever it has > > directories with the wrong ABI in the search path (unlike ld or ld.so, > > both are in some cases smart enough to skip wrong